shell: flash: just call do_flash_release() in flash_probe() to avoid code duplication

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 7b5187973a
commit 7ae378ddba
  1. 5
      source/shell/flash.c

@ -101,10 +101,7 @@ static void do_flash_probe(const char *s)
{
(void)s;
if (flash) {
flash_release(flash);
flash = NULL;
}
do_flash_release(NULL);
if (!(flash = flash_probe())) {
fprintf(stderr, "error: unable to probe the flash device.\n");

Loading…
Cancel
Save