lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f33395d9-c463-46e1-8a67-b9a07aa8f202@web.de>
Date: Sat, 21 Sep 2024 14:04:09 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-wireless@...r.kernel.org, James Minor <james.minor@...com>,
 Kalle Valo <kvalo@...nel.org>,
 Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
 Steve deRosier <steve.derosier@...rdtech.com>,
 Julia Lawall <julia.lawall@...ia.fr>
Subject: [PATCH 2/3] ath6kl: Omit a label in ath6kl_sdio_power_on()

From: Markus Elfring <elfring@...rs.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@...rs.sourceforge.net>
---
 drivers/net/wireless/ath/ath6kl/sdio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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)
--
2.46.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ