Skip to content

Commit

Permalink
PM / devfreq: tegra30: Delete an error message in tegra_devfreq_probe()
Browse files Browse the repository at this point in the history
The function “platform_get_irq” can log an error already.
Thus omit a redundant message for the exception handling in the
calling function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
  • Loading branch information
Markus Elfring authored and Chanwoo Choi committed Apr 14, 2020
1 parent d20ab9b commit a35a2f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/devfreq/tegra30-devfreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,10 +807,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
}

err = platform_get_irq(pdev, 0);
if (err < 0) {
dev_err(&pdev->dev, "Failed to get IRQ: %d\n", err);
if (err < 0)
return err;
}

tegra->irq = err;

irq_set_status_flags(tegra->irq, IRQ_NOAUTOEN);
Expand Down

0 comments on commit a35a2f2

Please sign in to comment.