Skip to content

Commit 0716f9f

Browse files
elfringchanwoochoi
authored andcommitted
PM / devfreq: tegra30: Delete an error message in tegra_devfreq_probe()
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>
1 parent d2216ba commit 0716f9f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎drivers/devfreq/tegra30-devfreq.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,9 @@ static int tegra_devfreq_probe(struct platform_device *pdev)
807807
}
808808

809809
err = platform_get_irq(pdev, 0);
810-
if (err < 0) {
811-
dev_err(&pdev->dev, "Failed to get IRQ: %d\n", err);
810+
if (err < 0)
812811
return err;
813-
}
812+
814813
tegra->irq = err;
815814

816815
irq_set_status_flags(tegra->irq, IRQ_NOAUTOEN);

0 commit comments

Comments
 (0)