Skip to content
Snippets Groups Projects
Commit cb56caac authored by Vignesh Raghavendra's avatar Vignesh Raghavendra Committed by Jagan Teki
Browse files

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: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent 864d6643
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment