[Linux-stm32] [PATCH -next] rtc: stmp3xxx: Add failure handling for stmp3xxx_wdt_register()
Wolfram Sang
wsa at kernel.org
Wed Sep 14 23:02:23 UTC 2022
> + 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://st-md-mailman.stormreply.com/pipermail/linux-stm32/attachments/20220915/d0355a05/attachment.sig>
More information about the Linux-stm32
mailing list