Skip to contentSkip to conversation

ata: rb532_cf: Remove unused variable

PATCH New Gustavo A. R. Silva 1 participant 1 message Jan 14, 2019 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: rb532_cf: Remove unused variable

Remove unused variable *info* in rb532_pata_driver_remove():

drivers/ata/pata_rb532_cf.c:165:24: warning: unused variable 'info' [-Wunused-variable]

Fixes 0fe98fa056d7 ("ata: rb532_cf: Convert to use GPIO descriptors")
---
 drivers/ata/pata_rb532_cf.c | 1 -
 1 file changed, 1 deletion(-)
drivers/ata/pata_rb532_cf.c +0 -1
index 66bb5bff126b..1b9a8552d2dd 100644
@@ -162,7 +162,6 @@ static int rb532_pata_driver_probe(struct platform_device *pdev)
 static int rb532_pata_driver_remove(struct platform_device *pdev)
 {
 	struct ata_host *ah = platform_get_drvdata(pdev);
-	struct rb532_cf_info *info = ah->private_data;
 
 	ata_host_detach(ah);
 
Signature · 1 line
2.20.1