Re: [PATCH -next] rtc: stmp3xxx: Add failure handling for stmp3xxx_wdt_register()

From: Wolfram Sang
Date: Wed Sep 14 2022 - 19:02:39 EST


> + if (rc)
> + platform_device_put(wdt_pdev);

This is correct, thanks.

> + } else {
> + dev_err(&rtc_pdev->dev,
> + "failed to allocate stmp3xxx_rtc_wdt\n");

This is superfluous because rc is initialized to -1.

Attachment: signature.asc
Description: PGP signature