2022-09-14 23:17:16

by Wolfram Sang

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

> + 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.


Attachments:
(No filename) (233.00 B)
signature.asc (849.00 B)
Download all attachments