From: Khalid Aziz <khalid@gonehiking.org>
To: Colin Ian King <colin.i.king@gmail.com>,
"James E . J . Bottomley" <jejb@linux.ibm.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scsi: FlashPoint: remove redundant variable bm_int_st
Date: Mon, 1 Aug 2022 10:27:20 -0600 [thread overview]
Message-ID: <dfcbacca-5b64-9c8a-cce1-6434e97563ee@gonehiking.org> (raw)
In-Reply-To: <20220730123736.147758-1-colin.i.king@gmail.com>
On 7/30/22 06:37, Colin Ian King wrote:
> The variable bm_int_st is assigned a value but it is never read. The
> variable and the assignment are redundant and can be removed.
>
> Cleans up clang scan build warning:
> drivers/scsi/FlashPoint.c:1726:7: warning: Although the value stored
> to 'bm_int_st' is used in the enclosing expression, the value is never
> actually read from 'bm_int_st' [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> ---
> drivers/scsi/FlashPoint.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Acked-by: Khalid Aziz <khalid@gonehiking.org>
>
> diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c
> index 90253208a72f..3d9c56ac8224 100644
> --- a/drivers/scsi/FlashPoint.c
> +++ b/drivers/scsi/FlashPoint.c
> @@ -1712,7 +1712,7 @@ static unsigned char FlashPoint_InterruptPending(void *pCurrCard)
> static int FlashPoint_HandleInterrupt(void *pcard)
> {
> struct sccb *currSCCB;
> - unsigned char thisCard, result, bm_status, bm_int_st;
> + unsigned char thisCard, result, bm_status;
> unsigned short hp_int;
> unsigned char i, target;
> struct sccb_card *pCurrCard = pcard;
> @@ -1723,7 +1723,7 @@ static int FlashPoint_HandleInterrupt(void *pcard)
>
> MDISABLE_INT(ioport);
>
> - if ((bm_int_st = RD_HARPOON(ioport + hp_int_status)) & EXT_STATUS_ON)
> + if (RD_HARPOON(ioport + hp_int_status) & EXT_STATUS_ON)
> bm_status = RD_HARPOON(ioport + hp_ext_status) &
> (unsigned char)BAD_EXT_STATUS;
> else
next prev parent reply other threads:[~2022-08-01 16:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-30 12:37 [PATCH] scsi: FlashPoint: remove redundant variable bm_int_st Colin Ian King
2022-08-01 16:27 ` Khalid Aziz [this message]
2022-08-01 23:52 ` Martin K. Petersen
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=dfcbacca-5b64-9c8a-cce1-6434e97563ee@gonehiking.org \
--to=khalid@gonehiking.org \
--cc=colin.i.king@gmail.com \
--cc=jejb@linux.ibm.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.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