From f2a922c697ca9037af4d81d46e8818a208f9fcae Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Thu, 27 Jul 2017 13:20:42 +0200 Subject: [PATCH] main: don't bail if mounting fails --- source/main.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/source/main.c b/source/main.c index 7f9e57d..3c87082 100644 --- a/source/main.c +++ b/source/main.c @@ -54,14 +54,9 @@ int main(void) user_con = console_init(0); admin_con = console_init(1); - if (!(flash = flash_probe())) - return -1; - - if (!(flash = ftl_mount(flash))) - return -1; - - if (!(mufs = mufs_mount(flash))) - return -1; + flash = flash_probe(); + flash = ftl_mount(flash); + mufs = mufs_mount(flash); fprintf(user_con->fp, "TBM-dev (built on " __DATE__ ")\n"); fprintf(admin_con->fp, "TBM-dev (built on " __DATE__ ")\n");