[U-Boot] [PATCH] mtd: spi: don't return -1 when scan succeed

Jagan Teki jagan at openedev.com
Tue Dec 6 19:53:00 CET 2016


On Mon, Dec 5, 2016 at 7:09 PM, Fabien Parent <fparent at 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 at baylibre.com>

Applied to u-boot-spi/master

thanks!
-- 
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.


More information about the U-Boot mailing list