summaryrefslogtreecommitdiff
path: root/drivers/spi/rk_spi.c
diff options
context:
space:
mode:
authorVignesh Raghavendra <vigneshr@ti.com>2019-11-09 09:34:13 +0300
committerJagan Teki <jagan@amarulasolutions.com>2019-12-27 15:17:26 +0300
commitcb56caacf8113cef90a3b477f08912260fd6a02e (patch)
tree6bd75d3876e7732bee51c8cc8bef784a638d54e5 /drivers/spi/rk_spi.c
parent864d66431a05a1ab78ac2995c1e98bd460766b35 (diff)
downloadu-boot-cb56caacf8113cef90a3b477f08912260fd6a02e.tar.xz
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 'drivers/spi/rk_spi.c')
0 files changed, 0 insertions, 0 deletions