Skip to content

Commit 11a2672

Browse files
mikechristiemartinkpetersen
authored andcommitted
scsi: ch: Remove unit_attention
unit_attention is not used so remove it. Signed-off-by: Mike Christie <michael.christie@oracle.com> Link: https://lore.kernel.org/r/20240123002220.129141-11-michael.christie@oracle.com Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: John Garry <john.g.garry@oracle.com> Reviewed-by: Martin Wilck <mwilck@suse.com> Acked-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1830532 commit 11a2672

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/scsi/ch.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ typedef struct {
113113
struct scsi_device **dt; /* ptrs to data transfer elements */
114114
u_int firsts[CH_TYPES];
115115
u_int counts[CH_TYPES];
116-
u_int unit_attention;
117116
u_int voltags;
118117
struct mutex lock;
119118
} scsi_changer;
@@ -208,7 +207,6 @@ ch_do_scsi(scsi_changer *ch, unsigned char *cmd, int cmd_len,
208207

209208
switch(sshdr.sense_key) {
210209
case UNIT_ATTENTION:
211-
ch->unit_attention = 1;
212210
if (retries++ < 3)
213211
goto retry;
214212
break;

0 commit comments

Comments
 (0)