Skip to content

Commit 476f8c8

Browse files
fthainmartinkpetersen
authored andcommitted
scsi: NCR5380: Drop redundant member from struct NCR5380_cmd
The 'message' member is stored but never loaded so just remove it. Tested-by: Stan Johnson <[email protected]> Signed-off-by: Finn Thain <[email protected]> Link: https://lore.kernel.org/r/4dc903a95a814d0c9b09656f3651a1bd798fcbbb.1723001788.git.fthain@linux-m68k.org Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 086c480 commit 476f8c8

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

drivers/scsi/NCR5380.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ static inline void initialize_SCp(struct scsi_cmnd *cmd)
157157
}
158158

159159
ncmd->status = 0;
160-
ncmd->message = 0;
161160
}
162161

163162
static inline void advance_sg_buffer(struct NCR5380_cmd *ncmd)
@@ -1807,7 +1806,6 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance)
18071806
NCR5380_transfer_pio(instance, &phase, &len, &data, 0);
18081807
if (tmp == 0xff)
18091808
break;
1810-
ncmd->message = tmp;
18111809

18121810
switch (tmp) {
18131811
case ABORT:

drivers/scsi/NCR5380.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ struct NCR5380_cmd {
231231
int this_residual;
232232
struct scatterlist *buffer;
233233
int status;
234-
int message;
235234
int phase;
236235
struct list_head list;
237236
};

0 commit comments

Comments
 (0)