[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5him46yacf.wl-tiwai@suse.de>
Date: Wed, 28 Apr 2021 12:25:36 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Cc: perex@...ex.cz, tiwai@...e.com, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: usb-audio: Remove redundant assignment to len
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@...ux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
Thanks, applied.
Takashi
Powered by blists - more mailing lists