* [PATCH] ASoC: rockchip: i2s: Fix missing error code in rockchip_i2s_probe()
@ 2022-06-24 8:27 Jiapeng Chong
2022-06-24 14:35 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2022-06-24 8:27 UTC (permalink / raw)
To: lgirdwood
Cc: broonie, perex, tiwai, heiko, alsa-devel, linux-arm-kernel,
linux-rockchip, linux-kernel, Jiapeng Chong
The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'ret'.
This was found by coccicheck:
sound/soc/rockchip/rockchip_i2s.c:810 rockchip_i2s_probe() warn: missing error code 'ret'.
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
sound/soc/rockchip/rockchip_i2s.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c
index d300eee9ddaa..0ed01624a2db 100644
--- a/sound/soc/rockchip/rockchip_i2s.c
+++ b/sound/soc/rockchip/rockchip_i2s.c
@@ -807,6 +807,7 @@ static int rockchip_i2s_probe(struct platform_device *pdev)
i2s->bclk_off = pinctrl_lookup_state(i2s->pinctrl, "bclk_off");
if (IS_ERR_OR_NULL(i2s->bclk_off)) {
dev_err(&pdev->dev, "failed to find i2s bclk_off\n");
+ ret = -EINVAL;
goto err_clk;
}
}
--
2.20.1.7.g153144c
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: rockchip: i2s: Fix missing error code in rockchip_i2s_probe()
2022-06-24 8:27 [PATCH] ASoC: rockchip: i2s: Fix missing error code in rockchip_i2s_probe() Jiapeng Chong
@ 2022-06-24 14:35 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-06-24 14:35 UTC (permalink / raw)
To: jiapeng.chong, lgirdwood
Cc: alsa-devel, tiwai, heiko, linux-rockchip, linux-kernel,
linux-arm-kernel, perex
On Fri, 24 Jun 2022 16:27:45 +0800, Jiapeng Chong wrote:
> The error code is missing in this code scenario, add the error code
> '-EINVAL' to the return value 'ret'.
>
> This was found by coccicheck:
>
> sound/soc/rockchip/rockchip_i2s.c:810 rockchip_i2s_probe() warn: missing error code 'ret'.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: rockchip: i2s: Fix missing error code in rockchip_i2s_probe()
commit: 7f6409fd9b54b6f56444edc996cd28059f215415
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-24 14:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24 8:27 [PATCH] ASoC: rockchip: i2s: Fix missing error code in rockchip_i2s_probe() Jiapeng Chong
2022-06-24 14:35 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®