diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-10-11 23:26:37 +0300 |
---|---|---|
committer | Dipen Patel <dipenp@nvidia.com> | 2023-10-12 09:32:30 -0700 |
commit | 0b40f91d43f72d52fb2a3f04c018d703e0477cc3 (patch) | |
tree | ac2ae835b2e7039e310ecf1a7c4124a4b0e34cee /drivers/hte/hte-tegra194.c | |
parent | 06eaa531f2dd1a4d5137a1b49e7c762cc3689b14 (diff) |
hte: tegra194: Remove redundant dev_err()
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>
Diffstat (limited to 'drivers/hte/hte-tegra194.c')
-rw-r--r-- | drivers/hte/hte-tegra194.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c index 9fd3c00ff695..698573e25436 100644 --- a/drivers/hte/hte-tegra194.c +++ b/drivers/hte/hte-tegra194.c @@ -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); |