aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/v4l2-common.c')
-rw-r--r--drivers/media/video/v4l2-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/v4l2-common.c b/drivers/media/video/v4l2-common.c
index 34deb68ae568..7cc42c1da457 100644
--- a/drivers/media/video/v4l2-common.c
+++ b/drivers/media/video/v4l2-common.c
@@ -716,7 +716,7 @@ int v4l2_i2c_attach(struct i2c_adapter *adapter, int address, struct i2c_driver
716 int err; 716 int err;
717 717
718 client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL); 718 client = kzalloc(sizeof(struct i2c_client), GFP_KERNEL);
719 if (client == 0) 719 if (!client)
720 return -ENOMEM; 720 return -ENOMEM;
721 721
722 client->addr = address; 722 client->addr = address;