hte: tegra194: Remove redundant dev_err()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 11 Oct 2023 20:26:37 +0000 (23:26 +0300)
committerDipen Patel <dipenp@nvidia.com>
Thu, 12 Oct 2023 16:32:30 +0000 (09:32 -0700)
There is no need to call the dev_err() function directly to print a custom
message when handling an error from platform_get_irq() function as it is
going to display an appropriate error message in case of a failure.

Reviewed-by: Dipen Patel <dipenp@nvidia.com>
Tested-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231010151709.4104747-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
drivers/hte/hte-tegra194.c

index 9fd3c00ff695e80d6ca6e04c4b7b06dc61707fef..698573e2543675fe959ee8c6ddb286e03930d54e 100644 (file)
@@ -731,10 +731,8 @@ static int tegra_hte_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        ret = platform_get_irq(pdev, 0);
-       if (ret < 0) {
-               dev_err_probe(dev, ret, "failed to get irq\n");
+       if (ret < 0)
                return ret;
-       }
        hte_dev->hte_irq = ret;
        ret = devm_request_irq(dev, hte_dev->hte_irq, tegra_hte_isr, 0,
                               dev_name(dev), hte_dev);