OSDN Git Service

mtd: rawnand: sunxi: Remove an unnecessary check
authorSamuel Holland <samuel@sholland.org>
Thu, 29 Dec 2022 18:15:21 +0000 (12:15 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 2 Jan 2023 11:14:21 +0000 (12:14 +0100)
commit59186a402ab07d205428ee9f62ff0e95ecb06b63
treec5f42b93af496e6465d9b05d58e0193f2b861ef4
parent6d7fea226b238b95d69faba49b8faf73d6e8c469
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
drivers/mtd/nand/raw/sunxi_nand.c