mtd: rawnand: mxc: Remove the unused function is_imx51_nfc()
Subsystems (3)
PATCH 1/1 mtd: rawnand: mxc: Remove the unused function is_imx51_nfc()
The function is_imx51_nfc is defined in the mxc_nand.c file, but not called elsewhere, so remove this unused function.
drivers/mtd/nand/raw/mxc_nand.c:1602:19: warning: unused function 'is_imx51_nfc'.
--- drivers/mtd/nand/raw/mxc_nand.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/mtd/nand/raw/mxc_nand.c +0 -5
@@ -1599,11 +1599,6 @@ static inline int is_imx25_nfc(struct mxc_nand_host *host)return host->devtype_data == &imx25_nand_devtype_data; } -static inline int is_imx51_nfc (struct mxc_nand_host *host) -{ -return host->devtype_data == &imx51_nand_devtype_data; -} -static inline int is_imx53_nfc (struct mxc_nand_host *host) {return host->devtype_data == &imx53_nand_devtype_data;
Signature · 1 line
2.20.1.7.g153144c
Miquel Raynal
maintainerHi,
[email protected] wrote on Fri, 17 Mar 2023 15:40:41 +0800:
Quoted 4 lines
The function
is_imx51_nfcis defined in themxc_nand.cfile, but not called elsewhere, so remove this unused function.
drivers/mtd/nand/raw/mxc_nand.c:1602:19: warning: unused function 'is_imx51_nfc'.
Thanks for your patch, but apparently is_imx53_nfc() is also unused, strange the robot did not pick this up. Anyway, no need to resend, I received another patch removing both functions already.
Quoted 14 lines
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/mtd/nand/raw/mxc_nand.c | 5 ----- 1 file changed, 5 deletions(-)drivers/mtd/nand/raw/mxc_nand.c +0
-0@@ -1599,11 +1599,6 @@ static inline int is_imx25_nfc(struct mxc_nand_host *host)return host->devtype_data == &imx25_nand_devtype_data;
drivers/mtd/nand/raw/mxc_nand.c static inline int is_imx25_nfc(struct mxc_nand_host *host) · line 1604
Quoted 10 lines
drivers/mtd/nand/raw/mxc_nand.c +0
-5} -static inline int is_imx51_nfc (struct mxc_nand_host *host) -{ -return host->devtype_data == &imx51_nand_devtype_data; -} -static inline int is_imx53_nfc (struct mxc_nand_host *host) {return host->devtype_data == &imx53_nand_devtype_data;
Thanks,
Miquèl