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-next>] [day] [month] [year] [list]
Message-Id: <20241009094313.8820-1-zhujun2@cmss.chinamobile.com>
Date: Wed,  9 Oct 2024 02:43:13 -0700
From: Zhu Jun <zhujun2@...s.chinamobile.com>
To: tiwai@...e.com
Cc: wangweidong.a@...nic.com,
	perex@...ex.cz,
	andriy.shevchenko@...ux.intel.com,
	heiko@...ech.de,
	nathan@...nel.org,
	u.kleine-koenig@...libre.com,
	zhujun2@...s.chinamobile.com,
	linux-sound@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH v2] ASoC: codecs: Fix error handling in aw_dev_get_dsp_status()

Changed the error handling in aw_dev_get_dsp_status to return -EPERM directly
instead of setting it to a variable.

Signed-off-by: Zhu Jun <zhujun2@...s.chinamobile.com>
---
V1 -> V2:
- add a dot after the commit
- modify commit info

 sound/soc/codecs/aw88399.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/aw88399.c b/sound/soc/codecs/aw88399.c
index 8dc2b8aa6832..bba59885242d 100644
--- a/sound/soc/codecs/aw88399.c
+++ b/sound/soc/codecs/aw88399.c
@@ -656,7 +656,7 @@ static int aw_dev_get_dsp_status(struct aw_device *aw_dev)
 	if (ret)
 		return ret;
 	if (!(reg_val & (~AW88399_WDT_CNT_MASK)))
-		ret = -EPERM;
+		return -EPERM;
 
 	return 0;
 }
-- 
2.17.1




Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ