staging: greybus: remove unnecessary goto
Subsystems (3)
PATCH 1/1 staging: greybus: remove unnecessary goto
Signed-off-by Haasham Khan <[email protected]>
--- drivers/staging/greybus/loopback.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/staging/greybus/loopback.c +0 -4
@@ -609,10 +609,6 @@ static int gb_loopback_async_transfer(struct gb_loopback *gb, u32 len) request, len +sizeof (*request), len + response_len, gb_loopback_async_transfer_complete); -if (retval) - goto gb_error; - -gb_error:kfree (request);return retval; }
Signature · 1 line
2.53.0
Quoted 11 lines · Haasham Khan
Signed-off-by Haasham Khan<[email protected]>--- drivers/staging/greybus/loopback.c | 4 ---- 1 file changed, 4 deletions(-)drivers/staging/greybus/loopback.c +0
-0@@ -609,10 +609,6 @@ static int gb_loopback_async_transfer(struct gb_loopback *gb, u32 len) request, len + sizeof(*request),
drivers/staging/greybus/loopback.c static int gb_loopback_async_transfer(struct gb_loopback *gb, u32 len)
Quoted 10 lines
drivers/staging/greybus/loopback.c +0
-5len + response_len, gb_loopback_async_transfer_complete); -if (retval) - goto gb_error; - -gb_error:kfree (request);return retval; } -- 2.53.0
A few things here:
You don't have a commit message explaining anything. You need something there explaining what your changing and why.
Also, it looks like you're starting a series ("1/1"). That is not needed.
I'm not sure the why you have a series here, but the big thing missing here is your commit message.
Jeremy Dean Clifton