[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YieYB+D2aAGB7FHV@hovoldconsulting.com>
Date: Tue, 8 Mar 2022 18:53:11 +0100
From: Johan Hovold <johan@...nel.org>
To: Colin Ian King <colin.i.king@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH] USB: serial: usb_wwan: remove redundant assignment to
variable i
On Mon, Mar 07, 2022 at 06:31:00PM +0000, Colin Ian King wrote:
> Variable i is being assigned a value that is never read, it is being
> re-assigned two statements later in a for-loop. The assignment is
> redundant and can be removed.
>
> Cleans up clang scan build warning:
> drivers/usb/serial/usb_wwan.c:151:2: warning: Value stored to 'i'
> is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
Applied, thanks.
Johan
Powered by blists - more mailing lists