commit | 79e1377ba6b670b415557dd5c72cdf6528cf562e | [log] [tgz] |
---|---|---|
author | Vignesh Raghavendra <vigneshr@ti.com> | Sat Nov 09 12:04:13 2019 +0530 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Fri Dec 27 17:47:26 2019 +0530 |
tree | 6bd75d3876e7732bee51c8cc8bef784a638d54e5 | |
parent | 231855e77aac5c3c94575913d5551c93f1f5ae8f [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>