diff options
author | Nasser Afshin <afshin.nasser@gmail.com> | 2018-04-03 00:23:20 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-04 21:49:52 +0200 |
commit | bb7a3681b2cf0cb31df12c41d75eaf2e56340bb9 (patch) | |
tree | 994476e0c7f955b344f1335707a9cb1fc2ee0c9a | |
parent | media: bttv: Fixed oops error when capturing at yuv410p (diff) | |
download | linux-bb7a3681b2cf0cb31df12c41d75eaf2e56340bb9.tar.xz linux-bb7a3681b2cf0cb31df12c41d75eaf2e56340bb9.zip |
media: i2c: tvp5150: Use parentheses for sizeof
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>
-rw-r--r-- | drivers/media/i2c/tvp5150.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c index 2476d812f669..8322190931a6 100644 --- 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]; |