diff mbox series

scsi: 53c700: remove redundant assignment to pointer SCp

Message ID 20220123175530.110462-1-colin.i.king@gmail.com
State New
Headers show
Series scsi: 53c700: remove redundant assignment to pointer SCp | expand

Commit Message

Colin Ian King Jan. 23, 2022, 5:55 p.m. UTC
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(-)

Comments

Martin K. Petersen Jan. 25, 2022, 5:41 a.m. UTC | #1
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
diff mbox series

Patch

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);