]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
scsi: NCR5380: Drop redundant member from struct NCR5380_cmd
authorFinn Thain <fthain@linux-m68k.org>
Wed, 7 Aug 2024 03:36:28 +0000 (13:36 +1000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2024 02:05:49 +0000 (22:05 -0400)
The 'message' member is stored but never loaded so just remove it.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Link: https://lore.kernel.org/r/4dc903a95a814d0c9b09656f3651a1bd798fcbbb.1723001788.git.fthain@linux-m68k.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/NCR5380.h

index 8a9df2ab9569657a47518f6144c2823f01794bcf..a47a825e7220f9c8284153da730d3bda81fdeba0 100644 (file)
@@ -157,7 +157,6 @@ static inline void initialize_SCp(struct scsi_cmnd *cmd)
        }
 
        ncmd->status = 0;
-       ncmd->message = 0;
 }
 
 static inline void advance_sg_buffer(struct NCR5380_cmd *ncmd)
@@ -1807,7 +1806,6 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance)
                                NCR5380_transfer_pio(instance, &phase, &len, &data, 0);
                                if (tmp == 0xff)
                                        break;
-                               ncmd->message = tmp;
 
                                switch (tmp) {
                                case ABORT:
index 8dc2be4212dce6d2452581e42c45484d3cdee3a9..84db14b036e4d60fd6d3e50af340834f2e38126f 100644 (file)
@@ -231,7 +231,6 @@ struct NCR5380_cmd {
        int this_residual;
        struct scatterlist *buffer;
        int status;
-       int message;
        int phase;
        struct list_head list;
 };