Linux-ide Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe
@ 2019-08-06  8:08 Gustavo A. R. Silva
  2019-08-06 13:45 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo A. R. Silva @ 2019-08-06  8:08 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz, Jens Axboe, Linus Walleij
  Cc: linux-ide, linux-kernel, 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;
                        ^~~~

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(-)

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);
 
-- 
2.22.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe
  2019-08-06  8:08 [PATCH] ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe Gustavo A. R. Silva
@ 2019-08-06 13:45 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2019-08-06 13:45 UTC (permalink / raw)
  To: Gustavo A. R. Silva, Bartlomiej Zolnierkiewicz, Linus Walleij
  Cc: linux-ide, linux-kernel

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.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-06  8:08 [PATCH] ata: rb532_cf: Fix unused variable warning in rb532_pata_driver_probe Gustavo A. R. Silva
2019-08-06 13:45 ` Jens Axboe

Linux-ide Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-ide/0 linux-ide/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-ide linux-ide/ https://lore.kernel.org/linux-ide \
		linux-ide@vger.kernel.org linux-ide@archiver.kernel.org
	public-inbox-index linux-ide


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-ide


AGPL code for this site: git clone https://public-inbox.org/ public-inbox