diff mbox series

[2/3] ath6kl: Omit a label in ath6kl_sdio_power_on()

Message ID f33395d9-c463-46e1-8a67-b9a07aa8f202@web.de (mailing list archive)
State Rejected
Delegated to: Jeff Johnson
Headers show
Series ath6kl: Adjustments for ath6kl_sdio_power_on() | expand

Commit Message

Markus Elfring Sept. 21, 2024, 12:04 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 21 Sep 2024 13:04:19 +0200

Delete the label “out” so that this function implementation becomes
a bit more succinct.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/net/wireless/ath/ath6kl/sdio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--
2.46.0
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c
index 5106c6909dc8..e4d15cc9b36c 100644
--- a/drivers/net/wireless/ath/ath6kl/sdio.c
+++ b/drivers/net/wireless/ath/ath6kl/sdio.c
@@ -529,13 +529,11 @@  static int ath6kl_sdio_power_on(struct ath6kl *ar)
 	ret = ath6kl_sdio_config(ar);
 	if (ret) {
 		ath6kl_err("Failed to config sdio: %d\n", ret);
-		goto out;
+		return ret;
 	}

 	ar_sdio->is_disabled = false;
-
-out:
-	return ret;
+	return 0;
 }

 static int ath6kl_sdio_power_off(struct ath6kl *ar)