diff options
author | Wang Weiyang <wangweiyang2@huawei.com> | 2022-03-17 19:39:07 +0800 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-04-04 10:34:46 +0200 |
commit | 6425dd136ddc40fc434156d1957a3adb367dd874 (patch) | |
tree | aca89d8040d984f858fbc63d11be64fdb92c4f4e /drivers/mtd/nand | |
parent | 3123109284176b1532874591f7c81f3837bbdc17 (diff) | |
download | linux-6425dd136ddc40fc434156d1957a3adb367dd874.tar.bz2 |
mtd: rawnand: davinci: Remove redundant unsigned comparison to zero
Since core_chipsel is uint32_t, comparison to zero is redundant
Signed-off-by: Wang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220317113907.96006-1-wangweiyang2@huawei.com
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/raw/davinci_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index 45fec8c192ab..3e98e3c255bf 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -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); |