diff options
author | Alexey Klimov <alexey.klimov@linaro.org> | 2015-09-10 03:38:20 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-10-15 17:42:00 +0200 |
commit | 6eeb8c355fbbe66d1d52eadaa588d5651f8cb092 (patch) | |
tree | 749e0a6de4d86946b0e889623cf24e6df9257b78 /drivers/clocksource/sh_cmt.c | |
parent | fdbd13105d08fed6a8201549f389e9c12021b67b (diff) | |
download | talos-obmc-linux-6eeb8c355fbbe66d1d52eadaa588d5651f8cb092.tar.gz talos-obmc-linux-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.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) unsigned int i; int ret; - memset(cmt, 0, sizeof(*cmt)); cmt->pdev = pdev; raw_spin_lock_init(&cmt->lock); |