diff options
author | Alexey Klimov <alexey.klimov@linaro.org> | 2015-09-09 20:38:20 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-10-15 11:42:00 -0400 |
commit | 6eeb8c355fbbe66d1d52eadaa588d5651f8cb092 (patch) | |
tree | 749e0a6de4d86946b0e889623cf24e6df9257b78 | |
parent | fdbd13105d08fed6a8201549f389e9c12021b67b (diff) |
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.c | 1 |
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) | |||
962 | unsigned int i; | 962 | unsigned int i; |
963 | int ret; | 963 | int ret; |
964 | 964 | ||
965 | memset(cmt, 0, sizeof(*cmt)); | ||
966 | cmt->pdev = pdev; | 965 | cmt->pdev = pdev; |
967 | raw_spin_lock_init(&cmt->lock); | 966 | raw_spin_lock_init(&cmt->lock); |
968 | 967 | ||