Unverified Commit 251ce34a authored by Zhu Jun's avatar Zhu Jun Committed by Mark Brown
Browse files

ASoC: codecs: Fix 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: default avatarZhu Jun <zhujun2@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241009073938.7472-1-zhujun2@cmss.chinamobile.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d0e806b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}