diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2019-11-09 12:04:13 +0530 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-12-27 17:47:26 +0530 |
commit | cb56caacf8113cef90a3b477f08912260fd6a02e (patch) | |
tree | 6bd75d3876e7732bee51c8cc8bef784a638d54e5 /arch/arm/dts/tegra30.dtsi | |
parent | 864d66431a05a1ab78ac2995c1e98bd460766b35 (diff) |
mtd: spi-nor-core: Fix static checker warnings
Static checker warns 'ret' variable may be used uninitialized in
spi_nor_erase() and spi_nor_write() in case of zero length requests.
Fix these warnings by checking for zero length requests and returning
early.
Reported-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Diffstat (limited to 'arch/arm/dts/tegra30.dtsi')
0 files changed, 0 insertions, 0 deletions