Home
last modified time | relevance | path

Searched hist:"304 decdd31d54ae274f785fb086f3f6ae30a8711" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi_flash.c304decdd31d54ae274f785fb086f3f6ae30a8711 Mon Dec 05 18:09:10 UTC 2016 Fabien Parent <fparent@baylibre.com> 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>