summaryrefslogtreecommitdiff
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 18:42:00 +0300
commit6eeb8c355fbbe66d1d52eadaa588d5651f8cb092 (patch)
tree749e0a6de4d86946b0e889623cf24e6df9257b78
parentfdbd13105d08fed6a8201549f389e9c12021b67b (diff)
downloadlinux-6eeb8c355fbbe66d1d52eadaa588d5651f8cb092.tar.xz
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>
-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);