summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-08-06 03:08:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-08-29 08:30:16 +0200
commit4f339c4018a8ba32886e21ee891565c8c660f00d (patch)
tree326f0e6e42e5ec999affd311ddce9be59e9280e4 /drivers
parent976dcd26cb03303545937c27ed01e9fd5f62ec1b (diff)
downloadlinux-stable-4f339c4018a8ba32886e21ee891565c8c660f00d.tar.gz
linux-stable-4f339c4018a8ba32886e21ee891565c8c660f00d.tar.bz2
linux-stable-4f339c4018a8ba32886e21ee891565c8c660f00d.zip
ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe
[ Upstream commit db341a049ec7e87053c91008cb452d0bfa6dde72 ] 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> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/pata_rb532_cf.c1
1 files changed, 0 insertions, 1 deletions
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);