From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Colin Ian King <colin.i.king@gmail.com>
Cc: Andreas Noever <andreas.noever@gmail.com>,
Michael Jamet <michael.jamet@intel.com>,
Yehezkel Bernat <YehezkelShB@gmail.com>,
linux-usb@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] thunderbolt: remove redundant assignment to variable len
Date: Sun, 23 Oct 2022 09:52:28 +0300 [thread overview]
Message-ID: <Y1TkrCZJVkQgXcAY@black.fi.intel.com> (raw)
In-Reply-To: <20221019225709.1506515-1-colin.i.king@gmail.com>
On Wed, Oct 19, 2022 at 11:57:09PM +0100, Colin Ian King wrote:
> The variable len is assigned a value that is never read. It is re-assigned
> a new value in the following do-while loop and never referenced after
> the loop. The assignment is redundant and can be removed.
>
> Cleans up clang scan build warning:
> drivers/thunderbolt/xdomain.c:344:2: warning: Value stored to 'len' is
> never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Applied to thunderbolt.git/next, thanks!
prev parent reply other threads:[~2022-10-23 6:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 22:57 [PATCH] thunderbolt: remove redundant assignment to variable len Colin Ian King
2022-10-23 6:52 ` Mika Westerberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y1TkrCZJVkQgXcAY@black.fi.intel.com \
--to=mika.westerberg@linux.intel.com \
--cc=YehezkelShB@gmail.com \
--cc=andreas.noever@gmail.com \
--cc=colin.i.king@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=michael.jamet@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox