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:
6f7e780
)
media: i2c: tvp5150: Use parentheses for sizeof
author
Nasser Afshin
<afshin.nasser@gmail.com>
Mon, 2 Apr 2018 22:23:20 +0000
(18:23 -0400)
committer
Mauro Carvalho Chehab
<mchehab+samsung@kernel.org>
Fri, 4 May 2018 19:49:52 +0000
(15:49 -0400)
This patch resolves a checkpatch.pl warning:
WARNING: sizeof *cap should be sizeof(*cap)
Signed-off-by: Nasser Afshin <Afshin.Nasser@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tvp5150.c
patch
|
blob
|
history
diff --git
a/drivers/media/i2c/tvp5150.c
b/drivers/media/i2c/tvp5150.c
index 2476d812f669476a286672de807009df8f4980fb..8322190931a6db617c7baa465a12f7649ea0b01b 100644
(file)
--- a/
drivers/media/i2c/tvp5150.c
+++ b/
drivers/media/i2c/tvp5150.c
@@
-623,7
+623,7
@@
static int tvp5150_g_sliced_vbi_cap(struct v4l2_subdev *sd,
int line, i;
dev_dbg_lvl(sd->dev, 1, debug, "g_sliced_vbi_cap\n");
- memset(cap, 0, sizeof
*cap
);
+ memset(cap, 0, sizeof
(*cap)
);
for (i = 0; i < ARRAY_SIZE(vbi_ram_default); i++) {
const struct i2c_vbi_ram_value *regs = &vbi_ram_default[i];