bus: da850-mstpri: remove redundant dev_err call in da8xx_mstpri_probe()
PATCH 1/1 bus: da850-mstpri: remove redundant dev_err call in da8xx_mstpri_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/bus/da8xx-mstpri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/bus/da8xx-mstpri.c +1 -3
@@ -218,10 +218,8 @@ static int da8xx_mstpri_probe(struct platform_device *pdev) res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); mstpri =devm_ioremap_resource (dev, res); -if (IS_ERR (mstpri)) { -dev_err (dev,"unable to map MSTPRI registers\n" ); +if (IS_ERR (mstpri))return PTR_ERR (mstpri); - } prio_list =da8xx_mstpri_get_board_prio ();if (!prio_list) {
2017-02-09 16:30 GMT+01:00 Wei Yongjun <[email protected]>:
Quoted 20 lines
From: Wei Yongjun <[email protected]>
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Signed-off-by Wei Yongjun <[email protected]>--- drivers/bus/da8xx-mstpri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/bus/da8xx-mstpri.c +0
-0@@ -218,10 +218,8 @@ static int da8xx_mstpri_probe(struct platform_device *pdev)
drivers/bus/da8xx-mstpri.c static int da8xx_mstpri_probe(struct platform_device *pdev) · line 225
Quoted 10 lines
drivers/bus/da8xx-mstpri.c +1
-3res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); mstpri =devm_ioremap_resource (dev, res); -if (IS_ERR (mstpri)) { -dev_err (dev,"unable to map MSTPRI registers\n" ); +if (IS_ERR (mstpri))return PTR_ERR (mstpri); - } prio_list =da8xx_mstpri_get_board_prio ();if (!prio_list) {