u-boot/drivers/mtd/spi
Fabien Parent 304decdd31 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>
2016-12-15 16:57:28 +01:00
..
fsl_espi_spl.c spi: Move freescale-specific code into a private header 2016-10-06 15:07:35 -04:00
Kconfig sunxi: Support booting from SPI flash 2016-07-15 08:34:34 +02:00
Makefile sf: Rename sf_params.c to spi_flash_ids.c 2016-11-18 13:04:54 +05:30
sandbox.c sf: nr_sectors -> n_sectors 2016-11-18 13:04:53 +05:30
sf_dataflash.c sf: dataflash: Minor cleanups 2016-11-19 08:41:54 +05:30
sf_internal.h spi: Remove dual flash options/flags 2016-11-19 08:41:44 +05:30
sf_mtd.c treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
sf_probe.c spi: Correct two error return values 2016-02-26 08:53:10 -07:00
sf-uclass.c dm: spi_flash: Allow the uclass to work without printf() 2016-01-15 05:39:27 -07:00
sf.c spi: Remove dual flash options/flags 2016-11-19 08:41:44 +05:30
spi_flash_ids.c sf: Add support for MX66U51235F, MX66L1G45G, MT25QU02G, MT25QL02G 2016-11-22 11:58:59 +05:30
spi_flash.c mtd: spi: don't return -1 when scan succeed 2016-12-15 16:57:28 +01:00
sunxi_spi_spl.c spl: Add a name to the SPL load-image methods 2016-12-09 08:40:13 -05:00