ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe
diff mbox series

Message ID 20190806080808.GA30026@embeddedor
State New
Headers show
Series
  • ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe
Related show

Commit Message

Gustavo A. R. Silva Aug. 6, 2019, 8:08 a.m. UTC
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")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
---
 drivers/ata/pata_rb532_cf.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Jens Axboe Aug. 6, 2019, 1:45 p.m. UTC | #1
On 8/6/19 1:08 AM, Gustavo A. R. Silva wrote:
> 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.

Patch
diff mbox series

diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c
index 7c37f2ff09e4..deae466395de 100644
--- a/drivers/ata/pata_rb532_cf.c
+++ b/drivers/ata/pata_rb532_cf.c
@@ -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);