summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/ndfc.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-07-31 18:36:20 +0300
committerBrian Norris <computersforpeace@gmail.com>2014-08-19 11:53:05 -0700
commit5828c60826e9422169b3711aa58a583242864cc8 (patch)
tree466d1dbaa3f8c45eb0fc930db912c80c6f182676 /drivers/mtd/nand/ndfc.c
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
downloadop-kernel-dev-5828c60826e9422169b3711aa58a583242864cc8.zip
op-kernel-dev-5828c60826e9422169b3711aa58a583242864cc8.tar.gz
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/ndfc.c')
-rw-r--r--drivers/mtd/nand/ndfc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c
index 69eaba6..253a644 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -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);
OpenPOWER on IntegriCloud