summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_consolemain.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nshlib/nsh_consolemain.c')
-rw-r--r--apps/nshlib/nsh_consolemain.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/nshlib/nsh_consolemain.c b/apps/nshlib/nsh_consolemain.c
index 6b51be470..f05447a64 100644
--- a/apps/nshlib/nsh_consolemain.c
+++ b/apps/nshlib/nsh_consolemain.c
@@ -160,11 +160,11 @@ int nsh_consolemain(int argc, char *argv[])
}
}
- /* Clean up */
+ /* Clean up. We do not get here, but this is necessary to keep some
+ * compilers happy. But others will complain that this code is not
+ * reachable.
+ */
nsh_exit(&pstate->cn_vtbl, 0);
-
- /* We do not get here, but this is necessary to keep some compilers happy */
-
return OK;
}