Skip to content

Commit

Permalink
watchdog: stm32_iwdg: drop superfluous error message
Browse files Browse the repository at this point in the history
In the function stm32_iwdg_probe(), devm_platform_ioremap_resource
has already contained error message, so drop the redundant one.

Co-developed-by: Zhang Shengju <[email protected]>
Signed-off-by: Zhang Shengju <[email protected]>
Signed-off-by: Tang Bin <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
Tang Bin authored and Wim Van Sebroeck committed Oct 26, 2021
1 parent 14b2d18 commit 004920d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/watchdog/stm32_iwdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,8 @@ static int stm32_iwdg_probe(struct platform_device *pdev)

/* This is the timer base. */
wdt->regs = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(wdt->regs)) {
dev_err(dev, "Could not get resource\n");
if (IS_ERR(wdt->regs))
return PTR_ERR(wdt->regs);
}

ret = stm32_iwdg_clk_init(pdev, wdt);
if (ret)
Expand Down

0 comments on commit 004920d

Please sign in to comment.