mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 14:56:54 -04:00
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:
committed by
Greg Kroah-Hartman
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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user