+ drivers-rtc-rtc-mxcc-remove-unneeded-label.patch added to -mm tree
Subsystems (2)
Subject: + drivers-rtc-rtc-mxcc-remove-unneeded-label.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Tue, 03 Dec 2013 12:34:08 -0800
The patch titled
Subject: drivers/rtc/rtc-mxc.c: remove unneeded label
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-mxcc-remove-unneeded-label.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-mxcc-remove-unneeded-label.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-mxcc-remove-unneeded-label.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Fabio Estevam <[email protected]>
Subject: drivers/rtc/rtc-mxc.c: remove unneeded label
There is no need to jump to the 'exit_free_pdata' label when devm_clk_get() fails, as we can directly return the error and simplify the code a bit.
---
drivers/rtc/rtc-mxc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/rtc/rtc-mxc.c renamed from drivers/rtc/rtc-mxc.c~drivers-rtc-rtc-mxcc-remove-unneeded-label +1 -3
@@ -391,8 +391,7 @@ static int mxc_rtc_probe(struct platform pdata->clk =devm_clk_get (&pdev->dev,NULL );if (IS_ERR (pdata->clk)) {dev_err (&pdev->dev,"unable to get clock!\n" ); - ret =PTR_ERR (pdata->clk); - goto exit_free_pdata; +return PTR_ERR (pdata->clk); }clk_prepare_enable (pdata->clk);
@@ -447,8 +446,6 @@ static int mxc_rtc_probe(struct platform exit_put_clk:clk_disable_unprepare (pdata->clk); -exit_free_pdata: