mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] staging: greybus: remove unnecessary goto
@ 2026-10-20 12:33 Haasham Khan
  2026-10-20 13:20 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Haasham Khan @ 2026-10-20 12:33 UTC (permalink / raw)
  To: pure.logic, johan, elder, gregkh
  Cc: greybus-dev, linux-staging, linux-kernel, Haasham Khan

Signed-off-by: Haasham Khan <haasham93@gmail.com>
---
 drivers/staging/greybus/loopback.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index efc69c10cffe..284935fded12 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -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;
 }
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [PATCH 1/1] staging: greybus: remove unnecessary goto
@ 2026-10-20 13:19 Haasham Khan
  0 siblings, 0 replies; 3+ messages in thread
From: Haasham Khan @ 2026-10-20 13:19 UTC (permalink / raw)
  To: pure.logic, johan, elder, gregkh
  Cc: greybus-dev, linux-staging, linux-kernel, outreachy, Haasham Khan

Signed-off-by: Haasham Khan <haasham93@gmail.com>
---
 drivers/staging/greybus/loopback.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index efc69c10cffe..284935fded12 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -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;
 }
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-20 13:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 12:33 [PATCH 1/1] staging: greybus: remove unnecessary goto Haasham Khan
2026-10-20 13:20 ` Greg KH
2026-10-20 13:19 Haasham Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®