From 361b3e404ccf093afa58b147ff18df1b17f6016d Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 1 Apr 2019 13:53:50 +0200 Subject: 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 --- proto-shell.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'proto-shell.c') 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; } -- cgit v1.2.1