Commits
![Fabien Parent](https://secure.gravatar.com/avatar/45e49e72baaa252a0b32dd45ed03a0fd.jpg?s=96&d=mm)
Fabien Parent committed 304decdd31d
mtd: spi: don't return -1 when scan succeed 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> Reviewed-by: Jagan Teki <jagan@openedev.com>