shell: Remove unnecessary initialization of err
All code paths in shell_exec() are guaranteed to set err before returning it, so doing this (rather curious) initialization is completely unnecessary. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
805d69c288
commit
04fbb80adb
1 changed files with 0 additions and 2 deletions
|
@ -367,8 +367,6 @@ int shell_exec(char *line)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = argc;
|
|
||||||
|
|
||||||
cb = get_cb(&argc, argv, &module);
|
cb = get_cb(&argc, argv, &module);
|
||||||
if (!cb) {
|
if (!cb) {
|
||||||
if (app_cmd_handler != NULL) {
|
if (app_cmd_handler != NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue