Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: aw88399: Correct error handling in aw_dev_get_dsp_status function

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>

authored by

Zhu Jun and committed by
Mark Brown
53189ae7 5cd575a8

+1 -1
+1 -1
sound/soc/codecs/aw88399.c
··· 656 656 if (ret) 657 657 return ret; 658 658 if (!(reg_val & (~AW88399_WDT_CNT_MASK))) 659 - ret = -EPERM; 659 + return -EPERM; 660 660 661 661 return 0; 662 662 }