scsi: NCR5380: Remove set but unused variable
authorFinn Thain <fthain@telegraphics.com.au>
Thu, 7 Mar 2019 21:49:02 +0000 (08:49 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 18:18:46 +0000 (14:18 -0400)
Cc: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c

index e8677174f91484d19434b655ce2f9a527d4e1692..fe0535affc148fcf932c12fb1bb4e4e2f1829826 100644 (file)
@@ -272,9 +272,8 @@ mrs[] = {
 static void NCR5380_print(struct Scsi_Host *instance)
 {
        struct NCR5380_hostdata *hostdata = shost_priv(instance);
-       unsigned char status, data, basr, mr, icr, i;
+       unsigned char status, basr, mr, icr, i;
 
-       data = NCR5380_read(CURRENT_SCSI_DATA_REG);
        status = NCR5380_read(STATUS_REG);
        mr = NCR5380_read(MODE_REG);
        icr = NCR5380_read(INITIATOR_COMMAND_REG);