mtd: rawnand: sunxi: Remove an unnecessary check
sunxi_nand->nsels cannot be zero, so the second check implies the first. Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20221229181526.53766-3-samuel@sholland.org
This commit is contained in:
parent
6d7fea226b
commit
59186a402a
@ -421,7 +421,7 @@ static void sunxi_nfc_select_chip(struct nand_chip *nand, unsigned int cs)
|
||||
struct sunxi_nand_chip_sel *sel;
|
||||
u32 ctl;
|
||||
|
||||
if (cs > 0 && cs >= sunxi_nand->nsels)
|
||||
if (cs >= sunxi_nand->nsels)
|
||||
return;
|
||||
|
||||
ctl = readl(nfc->regs + NFC_REG_CTL) &
|
||||
|
Loading…
x
Reference in New Issue
Block a user