From: Alexey Klimov Date: Thu, 10 Sep 2015 00:38:20 +0000 (+0300) Subject: clocksource/drivers/sh_cmt: Remove unneeded memset() in sh_cmt_setup() X-Git-Tag: firefly_0821_release~176^2~839^2~2^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6eeb8c355fbbe66d1d52eadaa588d5651f8cb092;p=firefly-linux-kernel-4.4.55.git clocksource/drivers/sh_cmt: Remove unneeded memset() in sh_cmt_setup() Memory for cmt struct is allocated by kzalloc() in sh_cmt_setup. Signed-off-by: Alexey Klimov Signed-off-by: Daniel Lezcano --- diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index ba73a6eb8d66..103c49362c68 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -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);