clocksource/drivers/sh_cmt: Remove unneeded memset() in sh_cmt_setup()
authorAlexey Klimov <alexey.klimov@linaro.org>
Thu, 10 Sep 2015 00:38:20 +0000 (03:38 +0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 15 Oct 2015 15:42:00 +0000 (17:42 +0200)
Memory for cmt struct is allocated by kzalloc() in sh_cmt_setup.

Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/sh_cmt.c

index ba73a6eb8d66e640666b3ee5fb1733ea829ba601..103c49362c68f66f830587a6504e33ad428a1c14 100644 (file)
@@ -962,7 +962,6 @@ static int sh_cmt_setup(struct sh_cmt_device *cmt, struct platform_device *pdev)
        unsigned int i;
        int ret;
 
-       memset(cmt, 0, sizeof(*cmt));
        cmt->pdev = pdev;
        raw_spin_lock_init(&cmt->lock);