* [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe
@ 2020-09-19 10:08 Liu Shixin
2020-09-21 15:04 ` Kevin Hilman
2020-09-29 20:19 ` Alexandre Belloni
0 siblings, 2 replies; 3+ messages in thread
From: Liu Shixin @ 2020-09-19 10:08 UTC (permalink / raw)
To: Alessandro Zummo, Alexandre Belloni, Kevin Hilman,
Neil Armstrong, Jerome Brunet, Martin Blumenstingl
Cc: linux-rtc, linux-amlogic, Liu Shixin, linux-kernel, linux-arm-kernel
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
---
drivers/rtc/rtc-meson-vrtc.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/rtc/rtc-meson-vrtc.c b/drivers/rtc/rtc-meson-vrtc.c
index 89e5ba0dae69..e6bd0808a092 100644
--- a/drivers/rtc/rtc-meson-vrtc.c
+++ b/drivers/rtc/rtc-meson-vrtc.c
@@ -65,7 +65,6 @@ static const struct rtc_class_ops meson_vrtc_ops = {
static int meson_vrtc_probe(struct platform_device *pdev)
{
struct meson_vrtc_data *vrtc;
- int ret;
vrtc = devm_kzalloc(&pdev->dev, sizeof(*vrtc), GFP_KERNEL);
if (!vrtc)
@@ -84,11 +83,7 @@ static int meson_vrtc_probe(struct platform_device *pdev)
return PTR_ERR(vrtc->rtc);
vrtc->rtc->ops = &meson_vrtc_ops;
- ret = rtc_register_device(vrtc->rtc);
- if (ret)
- return ret;
-
- return 0;
+ return rtc_register_device(vrtc->rtc);
}
static int __maybe_unused meson_vrtc_suspend(struct device *dev)
--
2.25.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe
2020-09-19 10:08 [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe Liu Shixin
@ 2020-09-21 15:04 ` Kevin Hilman
2020-09-29 20:19 ` Alexandre Belloni
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2020-09-21 15:04 UTC (permalink / raw)
To: Liu Shixin, Alessandro Zummo, Alexandre Belloni, Neil Armstrong,
Jerome Brunet, Martin Blumenstingl
Cc: linux-rtc, linux-amlogic, Liu Shixin, linux-kernel, linux-arm-kernel
Liu Shixin <liushixin2@huawei.com> writes:
> Simplify the return expression.
>
> Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe
2020-09-19 10:08 [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe Liu Shixin
2020-09-21 15:04 ` Kevin Hilman
@ 2020-09-29 20:19 ` Alexandre Belloni
1 sibling, 0 replies; 3+ messages in thread
From: Alexandre Belloni @ 2020-09-29 20:19 UTC (permalink / raw)
To: Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Neil Armstrong,
Alessandro Zummo, Liu Shixin
Cc: linux-rtc, linux-amlogic, Alexandre Belloni, linux-kernel,
linux-arm-kernel
On Sat, 19 Sep 2020 18:08:56 +0800, Liu Shixin wrote:
> Simplify the return expression.
Applied, thanks!
[1/1] rtc: meson: simplify the return expression of meson_vrtc_probe
commit: 9ce42e8e0323d39fad01f3d17c35dd16d91c4f46
Best regards,
--
Alexandre Belloni <alexandre.belloni@bootlin.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-09-29 20:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-19 10:08 [PATCH -next] rtc: meson: simplify the return expression of meson_vrtc_probe Liu Shixin
2020-09-21 15:04 ` Kevin Hilman
2020-09-29 20:19 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).