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>
This commit is contained in:
Viresh Kumar 2014-11-19 17:25:00 +05:30 committed by Greg Kroah-Hartman
parent d37b1db13f
commit 8abf414803
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}
/*