Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6eeb8c35 authored by Alexey Klimov's avatar Alexey Klimov Committed by Daniel Lezcano
Browse files

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: default avatarAlexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent fdbd1310
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);