Re: [PATCH] mtd: rawnand: mpc5121: Remove unused variable in ads5121_select_chip()

From: Miquel Raynal
Date: Fri Dec 03 2021 - 08:36:04 EST


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@xxxxxxxxxxxxxx>

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

Miquel