From: Fabio Estevam Date: Mon, 3 Jun 2019 19:34:30 +0000 (-0300) Subject: iio: imx7d_adc: Remove unneeded error message X-Git-Tag: Ubuntu-5.4-5.4.0-11.14~2512^2~38^2~46 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fe93116459717eb363713b2e272006a46e914733;p=mirror_ubuntu-focal-kernel.git iio: imx7d_adc: Remove unneeded error message In case of ioremap failure, the core code will take care of printing the error message, so there is no need for having a local error message in the driver. Signed-off-by: Fabio Estevam Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/imx7d_adc.c b/drivers/iio/adc/imx7d_adc.c index 958a34dd88ac..3327994fce3a 100644 --- a/drivers/iio/adc/imx7d_adc.c +++ b/drivers/iio/adc/imx7d_adc.c @@ -497,11 +497,8 @@ static int imx7d_adc_probe(struct platform_device *pdev) info->dev = dev; info->regs = devm_platform_ioremap_resource(pdev, 0); - if (IS_ERR(info->regs)) { - ret = PTR_ERR(info->regs); - dev_err(dev, "Failed to remap adc memory, err = %d\n", ret); - return ret; - } + if (IS_ERR(info->regs)) + return PTR_ERR(info->regs); irq = platform_get_irq(pdev, 0); if (irq < 0) {