Re: [PATCH] ALSA: usb-audio: Remove redundant assignment to len
From: Takashi Iwai
Date: Wed Apr 28 2021 - 06:25:39 EST
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@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
Thanks, applied.
Takashi