shell: Remove redundant checking for argv[0]
The way get_command_and_module() is used it's impossible for it to be
given an argv where argv[0] is NULL.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
diff --git a/subsys/shell/shell.c b/subsys/shell/shell.c
index b599a4e..7d9bde8 100644
--- a/subsys/shell/shell.c
+++ b/subsys/shell/shell.c
@@ -157,11 +157,6 @@
{
*module = -1;
- if (!argv[0]) {
- printk("Unrecognized command\n");
- return NULL;
- }
-
if (default_module == -1) {
if (!argv[1] || argv[1][0] == '\0') {
printk("Unrecognized command: %s\n", argv[0]);