diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-05-22 16:45:28 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-30 17:22:34 +0300 |
commit | 7071b2eaba9fd209a415738cc87857212db93ed1 (patch) | |
tree | 3401dc55652108d3e956d190f138c5a2d3975a3b /drivers/media/pci/saa7164/saa7164-i2c.c | |
parent | edff2bac9d3c3b94c0e790a49289824ff2c0a68c (diff) | |
download | linux-7071b2eaba9fd209a415738cc87857212db93ed1.tar.xz |
[media] saa7164: fix sparse warning
drivers/media/pci/saa7164/saa7164-i2c.c:45:33: warning: Using plain integer as NULL pointer
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/saa7164/saa7164-i2c.c')
-rw-r--r-- | drivers/media/pci/saa7164/saa7164-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-i2c.c b/drivers/media/pci/saa7164/saa7164-i2c.c index 6ea9d4f9ef2e..0342d84913b8 100644 --- a/drivers/media/pci/saa7164/saa7164-i2c.c +++ b/drivers/media/pci/saa7164/saa7164-i2c.c @@ -42,7 +42,7 @@ static int i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num) retval = saa7164_api_i2c_read(bus, msgs[i].addr, 0 /* reglen */, - 0 /* reg */, msgs[i].len, msgs[i].buf); + NULL /* reg */, msgs[i].len, msgs[i].buf); } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && msgs[i].addr == msgs[i + 1].addr) { /* write then read from same address */ |