summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/gpib/tnt4882/tnt4882_gpib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpib/tnt4882/tnt4882_gpib.c b/drivers/gpib/tnt4882/tnt4882_gpib.c
index 5f8d7547dadb..7b9cfb6c07ad 100644
--- a/drivers/gpib/tnt4882/tnt4882_gpib.c
+++ b/drivers/gpib/tnt4882/tnt4882_gpib.c
@@ -845,7 +845,7 @@ static int tnt4882_allocate_private(struct gpib_board *board)
board->private_data = kzalloc(sizeof(struct tnt4882_priv), GFP_KERNEL);
if (!board->private_data)
- return -1;
+ return -ENOMEM;
tnt_priv = board->private_data;
init_nec7210_private(&tnt_priv->nec7210_priv);
return 0;