diff --git a/cmd/sf.c b/cmd/sf.c index 727837d9cd..d18f6a888c 100644 --- a/cmd/sf.c +++ b/cmd/sf.c @@ -145,13 +145,10 @@ static int do_spi_flash_probe(int argc, char *const argv[]) new = spi_flash_probe(bus, cs, speed, mode); flash = new; - if (!new) { printf("Failed to initialize SPI flash at %u:%u\n", bus, cs); return 1; } - - flash = new; #endif return 0;