diff options
| -rw-r--r-- | drivers/gpib/cec/cec_gpib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpib/cec/cec_gpib.c b/drivers/gpib/cec/cec_gpib.c index cb81c2934d60..c2129ba3a902 100644 --- a/drivers/gpib/cec/cec_gpib.c +++ b/drivers/gpib/cec/cec_gpib.c @@ -222,7 +222,7 @@ static int cec_allocate_private(struct gpib_board *board) board->private_data = kzalloc(sizeof(struct cec_priv), GFP_KERNEL); if (!board->private_data) - return -1; + return -ENOMEM; priv = board->private_data; init_nec7210_private(&priv->nec7210_priv); return 0; |
