[PATCH] ALSA: usb-audio: Remove redundant assignment to len
Takashi Iwai
tiwai at suse.de
Wed Apr 28 12:25:36 CEST 2021
On Tue, 27 Apr 2021 12:26:34 +0200,
Jiapeng Chong wrote:
>
> Variable len is set to zero but this value is never read as it is
> overwritten with a new value later on, hence it is a redundant
> assignment and can be removed.
>
> Cleans up the following clang-analyzer warning:
>
> sound/usb/mixer.c:2713:3: warning: Value stored to 'len' is never read
> [clang-analyzer-deadcode.DeadStores].
>
> Reported-by: Abaci Robot <abaci at linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong at linux.alibaba.com>
Thanks, applied.
Takashi
More information about the Alsa-devel
mailing list