mtd: rawnand: sunxi: Remove an unnecessary check
authorSamuel Holland <samuel@sholland.org>
Thu, 29 Dec 2022 18:15:22 +0000 (12:15 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 2 Jan 2023 11:14:21 +0000 (12:14 +0100)
commit85e8177e581964a727410c781410f626e1cb4c25
treead05eb03cab3d82b459907538c9ad1edad1f3f17
parent59186a402ab07d205428ee9f62ff0e95ecb06b63
mtd: rawnand: sunxi: Remove an unnecessary check

Each chip is required to have a unique CS number ("reg" property) in the
range 0-7, so there is no need to separately count the number of chips.

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-4-samuel@sholland.org
drivers/mtd/nand/raw/sunxi_nand.c