LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] mtd: rawnand: mpc5121: Remove unused variable in ads5121_select_chip()
@ 2021-11-22 13:21 Geert Uytterhoeven
  2021-12-03 13:35 ` Miquel Raynal
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2021-11-22 13:21 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra, Boris Brezillon
  Cc: linux-mtd, linux-kernel, Geert Uytterhoeven

drivers/mtd/nand/raw/mpc5121_nfc.c: In function ‘ads5121_select_chip’:
drivers/mtd/nand/raw/mpc5121_nfc.c:294:19: warning: unused variable ‘mtd’ [-Wunused-variable]
  294 |  struct mtd_info *mtd = nand_to_mtd(nand);
      |                   ^~~

Fixes: 758b56f58b66bebc ("mtd: rawnand: Pass a nand_chip object to chip->select_chip()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/mtd/nand/raw/mpc5121_nfc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/mtd/nand/raw/mpc5121_nfc.c b/drivers/mtd/nand/raw/mpc5121_nfc.c
index cb293c50acb876fe..5b9271b9c32655b4 100644
--- a/drivers/mtd/nand/raw/mpc5121_nfc.c
+++ b/drivers/mtd/nand/raw/mpc5121_nfc.c
@@ -291,7 +291,6 @@ static int ads5121_chipselect_init(struct mtd_info *mtd)
 /* Control chips select signal on ADS5121 board */
 static void ads5121_select_chip(struct nand_chip *nand, int chip)
 {
-	struct mtd_info *mtd = nand_to_mtd(nand);
 	struct mpc5121_nfc_prv *prv = nand_get_controller_data(nand);
 	u8 v;
 
-- 
2.25.1


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

* Re: [PATCH] mtd: rawnand: mpc5121: Remove unused variable in ads5121_select_chip()
  2021-11-22 13:21 [PATCH] mtd: rawnand: mpc5121: Remove unused variable in ads5121_select_chip() Geert Uytterhoeven
@ 2021-12-03 13:35 ` Miquel Raynal
  0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2021-12-03 13:35 UTC (permalink / raw)
  To: Geert Uytterhoeven, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Boris Brezillon
  Cc: linux-mtd, linux-kernel

On Mon, 2021-11-22 at 13:21:38 UTC, Geert Uytterhoeven wrote:
> drivers/mtd/nand/raw/mpc5121_nfc.c: In function ‘ads5121_select_chip’:
> drivers/mtd/nand/raw/mpc5121_nfc.c:294:19: warning: unused variable ‘mtd’ [-Wunused-variable]
>   294 |  struct mtd_info *mtd = nand_to_mtd(nand);
>       |                   ^~~
> 
> Fixes: 758b56f58b66bebc ("mtd: rawnand: Pass a nand_chip object to chip->select_chip()")
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

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

end of thread, other threads:[~2021-12-03 13:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 13:21 [PATCH] mtd: rawnand: mpc5121: Remove unused variable in ads5121_select_chip() Geert Uytterhoeven
2021-12-03 13:35 ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).