Commit 6425dd13 authored by Wang Weiyang's avatar Wang Weiyang Committed by Miquel Raynal
Browse files

mtd: rawnand: davinci: Remove redundant unsigned comparison to zero



Since core_chipsel is uint32_t, comparison to zero is redundant

Signed-off-by: default avatarWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220317113907.96006-1-wangweiyang2@huawei.com
parent 31231092
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -727,7 +727,7 @@ static int nand_davinci_probe(struct platform_device *pdev)
		return -ENODEV;

	/* which external chipselect will we be managing? */
	if (pdata->core_chipsel < 0 || pdata->core_chipsel > 3)
	if (pdata->core_chipsel > 3)
		return -ENODEV;

	info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);