* [PATCH] scsi: 53c700: remove redundant assignment to pointer SCp
@ 2022-01-23 17:55 Colin Ian King
2022-01-25 5:41 ` Martin K. Petersen
0 siblings, 1 reply; 2+ messages in thread
From: Colin Ian King @ 2022-01-23 17:55 UTC (permalink / raw)
To: James E . J . Bottomley, Martin K . Petersen, linux-scsi
Cc: kernel-janitors, linux-kernel
Pointer SCp is being re-assigned the same value that it was initialized
to a few lines earlier, the assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/scsi/53c700.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/53c700.c b/drivers/scsi/53c700.c
index 3ad3ebaca8e9..ad4972c0fc53 100644
--- a/drivers/scsi/53c700.c
+++ b/drivers/scsi/53c700.c
@@ -1507,7 +1507,6 @@ NCR_700_intr(int irq, void *dev_id)
struct scsi_cmnd *SCp = hostdata->cmd;
handled = 1;
- SCp = hostdata->cmd;
if(istat & SCSI_INT_PENDING) {
udelay(10);
--
2.33.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] scsi: 53c700: remove redundant assignment to pointer SCp
2022-01-23 17:55 [PATCH] scsi: 53c700: remove redundant assignment to pointer SCp Colin Ian King
@ 2022-01-25 5:41 ` Martin K. Petersen
0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2022-01-25 5:41 UTC (permalink / raw)
To: Colin Ian King, linux-scsi, James E . J . Bottomley
Cc: Martin K . Petersen, kernel-janitors, linux-kernel
On Sun, 23 Jan 2022 17:55:30 +0000, Colin Ian King wrote:
> Pointer SCp is being re-assigned the same value that it was initialized
> to a few lines earlier, the assignment is redundant and can be removed.
>
>
Applied to 5.17/scsi-fixes, thanks!
[1/1] scsi: 53c700: remove redundant assignment to pointer SCp
https://git.kernel.org/mkp/scsi/c/efd7bb1d75cf
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-25 5:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23 17:55 [PATCH] scsi: 53c700: remove redundant assignment to pointer SCp Colin Ian King
2022-01-25 5:41 ` Martin K. Petersen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.