Skip to contentSkip to conversation

ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe

PATCH Applied Gustavo A. R. Silva 2 participants 2 messages Aug 6, 2019 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe

Fix the following warning (Building: rb532_defconfig mips):

drivers/ata/pata_rb532_cf.c: In function ‘rb532_pata_driver_remove’:
drivers/ata/pata_rb532_cf.c:161:24: warning: unused variable ‘info’ [-Wunused-variable]

  struct rb532_cf_info *info = ah->private_data;
                        ^~~~
Fixes cd56f35e52d9 ("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 7c37f2ff09e4..deae466395de 100644
@@ -158,7 +158,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.22.0
Applied
#1 lore raw
Quoted 6 lines · Gustavo A. R. Silva

Fix the following warning (Building: rb532_defconfig mips):

drivers/ata/pata_rb532_cf.c: In function ‘rb532_pata_driver_remove’:
drivers/ata/pata_rb532_cf.c:161:24: warning: unused variable ‘info’ [-Wunused-variable]

   struct rb532_cf_info *info = ah->private_data;
                         ^~~~

Applied, thanks.

Signature · 1 line
Jens Axboe