[PATCH 3/4] mtd: rawnand: txx9ndfmc: Drop if block with always false condition

Miquel Raynal miquel.raynal at bootlin.com
Mon Nov 13 03:12:28 PST 2023


On Thu, 2023-11-02 at 22:02:50 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= wrote:
> 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 at pengutronix.de>

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

Miquel



More information about the linux-mtd mailing list