mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 18:36:45 +07:00
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>
This commit is contained in:
parent
7d1311b93e
commit
5828c60826
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user