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

fsi: master-ast-cf: Remove redundant error printing in fsi_master_acf_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>
Link: https://patchwork.ozlabs.org/project/linux-fsi/patch/20210511085745.4340-1-thunder.leizhen@huawei.com/
Signed-off-by: Joel Stanley <joel@jms.id.au>

authored by

Zhen Lei and committed by
Joel Stanley
56e05c60 1e2233d4

-1
-1
drivers/fsi/fsi-master-ast-cf.c
··· 1309 1309 master->cf_mem = devm_ioremap_resource(&pdev->dev, &res); 1310 1310 if (IS_ERR(master->cf_mem)) { 1311 1311 rc = PTR_ERR(master->cf_mem); 1312 - dev_err(&pdev->dev, "Error %d mapping coldfire memory\n", rc); 1313 1312 goto err_free; 1314 1313 } 1315 1314 dev_dbg(&pdev->dev, "DRAM allocation @%x\n", master->cf_mem_addr);