Skip to content

Commit 0b40f91

Browse files
andy-shevpateldipen1984-nv
authored andcommitted
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>
1 parent 06eaa53 commit 0b40f91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/hte/hte-tegra194.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -731,10 +731,8 @@ static int tegra_hte_probe(struct platform_device *pdev)
731731
return -ENOMEM;
732732

733733
ret = platform_get_irq(pdev, 0);
734-
if (ret < 0) {
735-
dev_err_probe(dev, ret, "failed to get irq\n");
734+
if (ret < 0)
736735
return ret;
737-
}
738736
hte_dev->hte_irq = ret;
739737
ret = devm_request_irq(dev, hte_dev->hte_irq, tegra_hte_isr, 0,
740738
dev_name(dev), hte_dev);

0 commit comments

Comments
 (0)