Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mailbox: arm_mhu: Remove redundant error printing in mhu_probe()

When devm_ioremap_resource() fails, a clear enough error message will be
printed by its subfunction __devm_ioremap_resource(). The error
information contains the device name, failure cause, and possibly resource
information.

Therefore, remove the error printing here to simplify code and reduce the
binary size.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>

authored by

Zhen Lei and committed by
Jassi Brar
9f075235 13311e74

+1 -3
+1 -3
drivers/mailbox/arm_mhu.c
··· 122 122 return -ENOMEM; 123 123 124 124 mhu->base = devm_ioremap_resource(dev, &adev->res); 125 - if (IS_ERR(mhu->base)) { 126 - dev_err(dev, "ioremap failed\n"); 125 + if (IS_ERR(mhu->base)) 127 126 return PTR_ERR(mhu->base); 128 - } 129 127 130 128 for (i = 0; i < MHU_CHANS; i++) { 131 129 mhu->chan[i].con_priv = &mhu->mlink[i];