Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Alexey Klimov and committed by
Daniel Lezcano
6eeb8c35 fdbd1310

-1
-1
drivers/clocksource/sh_cmt.c
··· 962 962 unsigned int i; 963 963 int ret; 964 964 965 - memset(cmt, 0, sizeof(*cmt)); 966 965 cmt->pdev = pdev; 967 966 raw_spin_lock_init(&cmt->lock); 968 967