Skip to contentSkip to conversation

libata: fix build warning in ata_scsi_var_len_cdb_xlat

PATCH In review Arnd Bergmann 2 participants 2 messages Jun 28, 2017 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata: fix build warning in ata_scsi_var_len_cdb_xlat

This new harmless warning just showed up:

drivers/ata/libata-scsi.c: In function 'ata_scsi_var_len_cdb_xlat':
drivers/ata/libata-scsi.c:4194:1: error: label 'unspprt_sa' defined but not used [-Werror=unused-label]

The label is obviously unused and can be removed.

Fixes b1ffbf854e08 ("libata: Support for an ATA PASS-THROUGH(32) command.")
---
 drivers/ata/libata-scsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/ata/libata-scsi.c +0 -1
index 815c6e240aea..9d1b66b4ce7b 100644
@@ -4191,7 +4191,6 @@ static unsigned int ata_scsi_var_len_cdb_xlat(struct ata_queued_cmd *qc)
 	if (sa == ATA_32)
 		return ata_scsi_pass_thru(qc);
 
-unspprt_sa:
 	/* unsupported service action */
 	return 1;
 }
Signature · 1 line
2.9.0
#1 lore raw

Hello, Arnd.

Quoted 9 lines · Arnd Bergmann

This new harmless warning just showed up:

drivers/ata/libata-scsi.c: In function 'ata_scsi_var_len_cdb_xlat':
drivers/ata/libata-scsi.c:4194:1: error: label 'unspprt_sa' defined but not used [-Werror=unused-label]

The label is obviously unused and can be removed.

Fixes b1ffbf854e08 ("libata: Support for an ATA PASS-THROUGH(32) command.")

Already fixed a couple hours ago. Sorry about the noise.

Thanks.

Signature · 1 line
tejun