Skip to contentSkip to conversation

scsi: 53c700: remove redundant assignment to pointer SCp

PATCH Applied Colin Ian King 2 participants 2 messages Jan 23, 2022 – Jan 25, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: 53c700: remove redundant assignment to pointer SCp

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.

---
 drivers/scsi/53c700.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/53c700.c +0 -1
index 3ad3ebaca8e9..ad4972c0fc53 100644
@@ -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);
Signature · 1 line
2.33.1
#1 lore raw
Quoted 4 lines · Colin Ian King

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
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering