Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Fabio Estevam and committed by
Linus Torvalds
fbd5e754 a3e6ad67

+1 -4
+1 -4
drivers/rtc/rtc-mxc.c
··· 391 391 pdata->clk = devm_clk_get(&pdev->dev, NULL); 392 392 if (IS_ERR(pdata->clk)) { 393 393 dev_err(&pdev->dev, "unable to get clock!\n"); 394 - ret = PTR_ERR(pdata->clk); 395 - goto exit_free_pdata; 394 + return PTR_ERR(pdata->clk); 396 395 } 397 396 398 397 clk_prepare_enable(pdata->clk); ··· 445 446 446 447 exit_put_clk: 447 448 clk_disable_unprepare(pdata->clk); 448 - 449 - exit_free_pdata: 450 449 451 450 return ret; 452 451 }