Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5828c608 authored by Dan Carpenter's avatar Dan Carpenter Committed by Brian Norris
Browse files

mtd: ndfc: silence an array underflow static checker warning



We check "cs" for array overflows but we don't check for underflows and
it upsets the static checkers.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 7d1311b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -203,7 +203,8 @@ static int ndfc_probe(struct platform_device *ofdev)
	struct ndfc_controller *ndfc;
	const __be32 *reg;
	u32 ccr;
	int err, len, cs;
	u32 cs;
	int err, len;

	/* Read the reg property to get the chip select */
	reg = of_get_property(ofdev->dev.of_node, "reg", &len);