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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: John Garry <[email protected]> Reviewed-by: Martin Wilck <[email protected]> Acked-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
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)