提交 6eeb8c35 编写于 作者: A Alexey Klimov 提交者: Daniel Lezcano

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: NAlexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
上级 fdbd1310
...@@ -962,7 +962,6 @@ static int sh_cmt_setup(struct sh_cmt_device *cmt, struct platform_device *pdev) ...@@ -962,7 +962,6 @@ static int sh_cmt_setup(struct sh_cmt_device *cmt, struct platform_device *pdev)
unsigned int i; unsigned int i;
int ret; int ret;
memset(cmt, 0, sizeof(*cmt));
cmt->pdev = pdev; cmt->pdev = pdev;
raw_spin_lock_init(&cmt->lock); raw_spin_lock_init(&cmt->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册