mtd: rawnand: davinci: Remove redundant unsigned comparison to zero
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/nand/raw/davinci_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/davinci_nand.c +1 -1
@@ -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 );
Signature · 1 line
2.17.1
Quoted 3 lines · Wang Weiyang
Since
core_chipselisuint32_t, comparison to zero is redundantSigned-off-by Wang Weiyang <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel