lkml.org 
[lkml]   [2018]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] media: i2c: tvp5150: Use parentheses for sizeof
From
Date
Hi,

On 04/02/2018 02:59 PM, Nasser Afshin wrote:
> This patch resolves a checkpatch.pl warning

It would be nice if you explicitly mention the warning.

Thanks.
--
Gustavo

> Signed-off-by: Nasser Afshin <Afshin.Nasser@gmail.com>
> ---
> drivers/media/i2c/tvp5150.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/tvp5150.c b/drivers/media/i2c/tvp5150.c
> index d561d87d219a..d528fddbea16 100644
> --- a/drivers/media/i2c/tvp5150.c
> +++ b/drivers/media/i2c/tvp5150.c
> @@ -625,7 +625,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];

\
 
 \ /
  Last update: 2018-04-02 22:42    [W:0.072 / U:1.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site