]> git.baikalelectronics.ru Git - kernel.git/commitdiff
scsi: 53c700: Remove redundant assignment to pointer SCp
authorColin Ian King <colin.i.king@gmail.com>
Sun, 23 Jan 2022 17:55:30 +0000 (17:55 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Jan 2022 05:08:18 +0000 (00:08 -0500)
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.

Link: https://lore.kernel.org/r/20220123175530.110462-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/53c700.c

index 3ad3ebaca8e99a3dc52876547283649e08d1f987..ad4972c0fc534a1d0cd3e1056d0bea3ac63fcce3 100644 (file)
@@ -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);