
6 Dec
2016
6 Dec
'16
7:53 p.m.
On Mon, Dec 5, 2016 at 7:09 PM, Fabien Parent fparent@baylibre.com wrote:
In spi_flash_scan, 'ret' is initialled to -1, but 'ret' is not always used to store a return value, in that case, even when the function succeed, an error (-1) will be returned. Lets just return 0 if we hit the end of the function.
Signed-off-by: Fabien Parent fparent@baylibre.com
Applied to u-boot-spi/master
thanks!
--
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.