From: Viresh Kumar Date: Wed, 19 Nov 2014 11:55:00 +0000 (+0530) Subject: greybus: operation: don't complete operation twice X-Git-Tag: v4.9-rc1~119^2~378^2~21^2~1859 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8abf4148030d42825d4f76f4a3cf734dbc2bcd2b;p=karo-tx-linux.git greybus: operation: don't complete operation twice Signed-off-by: Viresh Kumar Reviewed-by: Alex Elder Signed-off-by: Greg Kroah-Hartman --- 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); } /*