summaryrefslogtreecommitdiffstats
path: root/drivers/staging/i2o/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/i2o/device.c')
-rw-r--r--drivers/staging/i2o/device.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/i2o/device.c b/drivers/staging/i2o/device.c
index 2af22553dd4e..e47496cb0ac2 100644
--- a/drivers/staging/i2o/device.c
+++ b/drivers/staging/i2o/device.c
@@ -565,10 +565,8 @@ int i2o_parm_table_get(struct i2o_device *dev, int oper, int group,
size += 4 - size % 4;
opblk = kmalloc(size, GFP_KERNEL);
- if (opblk == NULL) {
- printk(KERN_ERR "i2o: no memory for query buffer.\n");
+ if (opblk == NULL)
return -ENOMEM;
- }
opblk[0] = 1; /* operation count */
opblk[1] = 0; /* pad */