shell: Fix looking up help for the current module
The code was not properly handling "help <cmd>" for the currently selected module. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
7318904ae1
commit
45f258686b
1 changed files with 2 additions and 4 deletions
|
@ -211,11 +211,9 @@ static int cmd_help(int argc, char *argv[])
|
|||
}
|
||||
|
||||
cmd_str = argv[2];
|
||||
} else if (argc > 2) {
|
||||
cmd_str = argv[1];
|
||||
} else {
|
||||
printk("Unknown module or command\n");
|
||||
return -EINVAL;
|
||||
cmd_str = argv[1];
|
||||
module = default_module;
|
||||
}
|
||||
|
||||
if (!module) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue