mailbox: platform_mhu: Remove redundant dev_err call in platform_mhu_probe()
PATCH 1/1 mailbox: platform_mhu: Remove redundant dev_err call in platform_mhu_probe()
From: Wei Yongjun <[email protected]>
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/mailbox/platform_mhu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mailbox/platform_mhu.c +1 -3
@@ -137,10 +137,8 @@ static int platform_mhu_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); mhu->base =devm_ioremap_resource (dev, res); -if (IS_ERR (mhu->base)) { -dev_err (dev,"ioremap failed\n" ); +if (IS_ERR (mhu->base))return PTR_ERR (mhu->base); - }for (i =0 ; i <MHU_CHANS ; i++) { mhu->chan[i].con_priv = &mhu->mlink[i];