commit | 4d035acaf0fcedabdd17cc8cae067ab85aa2c089 | [log] [tgz] |
---|---|---|
author | Fabien Parent <fparent@baylibre.com> | Mon Dec 05 19:09:10 2016 +0100 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Dec 15 16:57:28 2016 +0100 |
tree | ed9e477cd133459490c0dbd5fab4582636961cb0 | |
parent | e3f94264458c2fc50d9ea67121cf6173a9ea3fe5 [diff] |
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>