From: Mike Christie Date: Tue, 23 Jan 2024 00:22:11 +0000 (-0600) Subject: scsi: ch: Remove unit_attention X-Git-Tag: dma-maping-6.9-2024-04-14~125^2~15^2~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=11a26723210e91476b15f3d4f5def88609d04880;p=users%2Fhch%2Fdma-mapping.git scsi: ch: Remove unit_attention unit_attention is not used so remove it. Signed-off-by: Mike Christie Link: https://lore.kernel.org/r/20240123002220.129141-11-michael.christie@oracle.com Reviewed-by: Christoph Hellwig Reviewed-by: John Garry Reviewed-by: Martin Wilck Acked-by: Christoph Hellwig Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index 2b864061e073..9d7fa097ae9e 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c @@ -113,7 +113,6 @@ typedef struct { struct scsi_device **dt; /* ptrs to data transfer elements */ u_int firsts[CH_TYPES]; u_int counts[CH_TYPES]; - u_int unit_attention; u_int voltags; struct mutex lock; } scsi_changer; @@ -208,7 +207,6 @@ ch_do_scsi(scsi_changer *ch, unsigned char *cmd, int cmd_len, switch(sshdr.sense_key) { case UNIT_ATTENTION: - ch->unit_attention = 1; if (retries++ < 3) goto retry; break;