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:
parent
d37b1db13f
commit
8abf414803
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue