]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: sunxi: Remove an unnecessary check
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Jan 2023 22:06:33 +0000 (16:06 -0600)
committerAndre Przywara <andre.przywara@arm.com>
Fri, 28 Apr 2023 00:06:57 +0000 (01:06 +0100)
commitb05bf9415705faffc2a45c2a5f5385f119f9a8b1
tree846455844d1650fc0500fb08bb90dc591f133ae4
parent7a85585fbcaf10d50cf8e44a8e46384228c0224d
mtd: nand: 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.

Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
drivers/mtd/nand/raw/sunxi_nand.c