Re: [PATCH] media: lirc: suppress false positive smatch warning

Dan Carpenter <[email protected]> Thu, 10 Mar 2022 17:42:30 +0300
Newsgroups org.kernel.vger.smatch,org.kernel.vger.linux-media
Message-ID <20220310144230.GI3315@kadam>
On Thu, Mar 10, 2022 at 01:23:50PM +0000, Sean Young wrote:
> The latest smatch says:
> 
> drivers/media/rc/lirc_dev.c:632 lirc_read_mode2() error: uninitialized symbol 'copied'.
> drivers/media/rc/lirc_dev.c:671 lirc_read_scancode() error: uninitialized symbol 'copied'.
> 
> This is a false positive since in all reaching code paths, copied will
> be set. Work around this by providing a zero initializer for copied.
> 
> Cc: Dan Carpenter <[email protected]>
> Cc: [email protected]
> Signed-off-by: Sean Young <[email protected]>

I'm sorry for this.  I can't reproduce this on my system.  I just did a
push for something unrelated and I don't know what the previous HEAD
was...

regards,
dan carpenter