Commit 361b3e40 authored by Hans Dedecker's avatar Hans Dedecker

proto-shell: return error in case setup fails

In case PROTO_CMD_SETUP cannot be handled due to an invalid state; return
-1 so the calling functions are aware the PROTO_CMD_SETUP has failed.
Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
parent a97297d8
......@@ -181,11 +181,6 @@ proto_shell_handler(struct interface_proto_state *proto,
state->sm = S_SETUP;
break;
case S_SETUP_ABORT:
case S_TEARDOWN:
case S_SETUP:
return 0;
default:
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment