projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edff2ba
)
[media] saa7164: fix sparse warning
author
Hans Verkuil
<
[email protected]
>
Fri, 22 May 2015 13:45:28 +0000
(10:45 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Sat, 30 May 2015 14:22:34 +0000
(11:22 -0300)
drivers/media/pci/saa7164/saa7164-i2c.c:45:33: warning: Using plain integer as NULL pointer
Signed-off-by: Hans Verkuil <
[email protected]
>
Reviewed-by: Steven Toth <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/pci/saa7164/saa7164-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/media/pci/saa7164/saa7164-i2c.c
b/drivers/media/pci/saa7164/saa7164-i2c.c
index 6ea9d4f9ef2e4abe1583eabce9ebcdae4bcd8652..0342d84913b855e4f7e5cac017c87356c1839f89 100644
(file)
--- 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 */