diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-04-01 13:53:50 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-04-01 22:56:23 +0200 |
commit | 361b3e404ccf093afa58b147ff18df1b17f6016d (patch) | |
tree | 842765a0a122a16f3291a454198f130ea16825a4 | |
parent | a97297d83e427685d316a170b769922083c02794 (diff) |
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: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | proto-shell.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/proto-shell.c b/proto-shell.c index 9653f4c..47a9568 100644 --- a/proto-shell.c +++ b/proto-shell.c @@ -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; } |