aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/sh_cmt.c
diff options
context:
space:
mode:
authorAlexey Klimov <alexey.klimov@linaro.org>2015-09-10 03:38:20 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2015-10-15 17:42:00 +0200
commit6eeb8c355fbbe66d1d52eadaa588d5651f8cb092 (patch)
tree749e0a6de4d86946b0e889623cf24e6df9257b78 /drivers/clocksource/sh_cmt.c
parentclocksource/drivers/em_sti: Remove unneeded memset()s (diff)
downloadlinux-dev-6eeb8c355fbbe66d1d52eadaa588d5651f8cb092.tar.xz
linux-dev-6eeb8c355fbbe66d1d52eadaa588d5651f8cb092.zip
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 <alexey.klimov@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource/sh_cmt.c')
-rw-r--r--drivers/clocksource/sh_cmt.c1
1 files changed, 0 insertions, 1 deletions
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);