diff options
author | Viresh Kumar | 2014-11-19 12:55:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-11-19 19:44:14 +0100 |
commit | 8abf4148030d42825d4f76f4a3cf734dbc2bcd2b (patch) | |
tree | 0ac1a1f766cd387d540719fb8b5c76f939fb8792 /drivers/staging | |
parent | greybus: refactor gb_connection_recv() (diff) | |
download | kernel-qcow2-linux-8abf4148030d42825d4f76f4a3cf734dbc2bcd2b.tar.gz kernel-qcow2-linux-8abf4148030d42825d4f76f4a3cf734dbc2bcd2b.tar.xz kernel-qcow2-linux-8abf4148030d42825d4f76f4a3cf734dbc2bcd2b.zip |
greybus: operation: don't complete operation twice
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/greybus/operation.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index 520214bde878..a2b27aeefb7f 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -176,14 +176,12 @@ static void gb_operation_request_handle(struct gb_operation *operation) */ if (protocol->request_recv) { protocol->request_recv(header->type, operation); - goto out; + return; } gb_connection_err(operation->connection, "unexpected incoming request type 0x%02hhx\n", header->type); operation->result = GB_OP_PROTOCOL_BAD; -out: - gb_operation_complete(operation); } /* |