mtd: rawnand: txx9ndfmc: Drop if block with always false condition
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 2 Nov 2023 22:02:50 +0000 (23:02 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 13 Nov 2023 11:06:47 +0000 (12:06 +0100)
commit354dbdcbdd79ec417f6c35f55b1fe6310e7dd431
tree33a45ef6ba413d0aac1e2aa78e2a3ff5d3b1ea6e
parent160c0b7f9a166d62a3aa32853883666eda896c58
mtd: rawnand: txx9ndfmc: Drop if block with always false condition

txx9ndfmc_remove() is only called after txx9ndfmc_probe() completed
successfully. In this case platform_set_drvdata() was called with a
non-NULL argument and so platform_get_drvdata() won't return NULL.

Simplify by removing the if block with the always false condition.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20231102220246.3336154-9-u.kleine-koenig@pengutronix.de
drivers/mtd/nand/raw/txx9ndfmc.c