* [PATCH -next] ASoC: sun4i-codec: remove redundant dev_err call in sun4i_codec_probe()
@ 2021-04-09 11:02 Qiheng Lin
0 siblings, 0 replies; only message in thread
From: Qiheng Lin @ 2021-04-09 11:02 UTC (permalink / raw)
To: linqiheng, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Maxime Ripard, Chen-Yu Tsai, Philipp Zabel,
Kuninori Morimoto, Randy Dunlap
Cc: alsa-devel, linux-arm-kernel, linux-kernel, kernel-janitors, Hulk Robot
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
---
sound/soc/sunxi/sun4i-codec.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c
index 6c13cc84b3fb..00b73b7444b7 100644
--- a/sound/soc/sunxi/sun4i-codec.c
+++ b/sound/soc/sunxi/sun4i-codec.c
@@ -1706,10 +1706,8 @@ static int sun4i_codec_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(base)) {
- dev_err(&pdev->dev, "Failed to map the registers\n");
+ if (IS_ERR(base))
return PTR_ERR(base);
- }
quirks = of_device_get_match_data(&pdev->dev);
if (quirks == NULL) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-09 11:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 11:02 [PATCH -next] ASoC: sun4i-codec: remove redundant dev_err call in sun4i_codec_probe() Qiheng Lin
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®