summaryrefslogtreecommitdiffstats
path: root/common/cmd_sf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_sf.c')
-rw-r--r--common/cmd_sf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/cmd_sf.c b/common/cmd_sf.c
index 342021df97..ed3e398ccd 100644
--- a/common/cmd_sf.c
+++ b/common/cmd_sf.c
@@ -139,8 +139,6 @@ static int do_spi_flash_probe(int argc, char * const argv[])
return 1;
}
- if (flash)
- spi_flash_free(flash);
flash = new;
#endif
OpenPOWER on IntegriCloud