Re: [PATCH][next] HID: sony: remove redundant assignment to variable ret
From: Jiri Kosina
Date: Fri Apr 12 2024 - 11:57:10 EST
On Thu, 28 Mar 2024, Colin Ian King wrote:
> The variable ret is being assigned a value that is never read
> afterwards. The assignment is redundant and can be removed.
>
> Cleans up clang scan build warning:
> drivers/hid/hid-sony.c:2020:3: warning: Value stored to 'ret'
> is never read [deadcode.DeadStores]
That assignment is indeed bogus. Applied, thanks.
--
Jiri Kosina
SUSE Labs