projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3123109
)
mtd: rawnand: davinci: Remove redundant unsigned comparison to zero
author
Wang Weiyang
<wangweiyang2@huawei.com>
Thu, 17 Mar 2022 11:39:07 +0000
(19:39 +0800)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 4 Apr 2022 08:34:46 +0000
(10:34 +0200)
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
drivers/mtd/nand/raw/davinci_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/davinci_nand.c
b/drivers/mtd/nand/raw/davinci_nand.c
index
45fec8c
..
3e98e3c
100644
(file)
--- 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);