projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cd575a
)
ASoC: aw88399: Correct error handling in aw_dev_get_dsp_status function
author
Zhu Jun
<zhujun2@cmss.chinamobile.com>
Tue, 8 Oct 2024 02:59:23 +0000
(19:59 -0700)
committer
Mark Brown
<broonie@kernel.org>
Tue, 8 Oct 2024 09:49:20 +0000
(10:49 +0100)
Added proper error handling for register value check that
return -EPERM when register value does not meet expected condition
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Link:
https://patch.msgid.link/20241008025923.10606-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/aw88399.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/aw88399.c
b/sound/soc/codecs/aw88399.c
index f3d4f13e6aedc2f19bc91e8b2b79074bb556f058..ee3cc2a95f85e75be0e8bdaa9db48aea3d0218a2 100644
(file)
--- 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;
+ ret
urn
-EPERM;
return 0;
}