shell: Remove redundant checking for first parameter
The way the command line parsing works, argv[0] is always guaranteed
to be non-NULL as well as a non-empty string, so doing checks for this
in get_cb() is redundant.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
diff --git a/subsys/shell/shell.c b/subsys/shell/shell.c
index 4f67f2b..039fa10 100644
--- a/subsys/shell/shell.c
+++ b/subsys/shell/shell.c
@@ -311,11 +311,6 @@
const char *command;
int i;
- if (!first_string || first_string[0] == '\0') {
- printk("Illegal parameter\n");
- return NULL;
- }
-
if (!strcmp(first_string, "help")) {
return show_help;
}