]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
rtc: s3c: remove unnecessary NULL assignment
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 11 Aug 2015 11:28:20 +0000 (20:28 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:13 +0000 (13:19 +0200)
It's unnecessary the code that assigns info->rtc_clk to NULL in
s3c_rtc_remove.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-s3c.c

index 3ee961529b5b4461124661da23c887ef7da3d811..7cc8f73a3fe8f65174c43922529a8523177ded27 100644 (file)
@@ -425,7 +425,6 @@ static int s3c_rtc_remove(struct platform_device *pdev)
        if (info->data->needs_src_clk)
                clk_unprepare(info->rtc_src_clk);
        clk_unprepare(info->rtc_clk);
-       info->rtc_clk = NULL;
 
        return 0;
 }