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

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/h8300_*: Remove unneeded memset()s

Memory for timer16_priv, timer8_priv and tpu_priv structs is
allocated by devm_kzalloc() in corresponding probe functions
of drivers.
No need to zero it one more time.

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
ba49af35 6eeb8c35

-3
-1
drivers/clocksource/h8300_timer16.c
··· 153 153 int ret, irq; 154 154 unsigned int ch; 155 155 156 - memset(p, 0, sizeof(*p)); 157 156 p->pdev = pdev; 158 157 159 158 res[REG_CH] = platform_get_resource(p->pdev,
-1
drivers/clocksource/h8300_timer8.c
··· 215 215 int irq; 216 216 int ret; 217 217 218 - memset(p, 0, sizeof(*p)); 219 218 p->pdev = pdev; 220 219 221 220 res = platform_get_resource(p->pdev, IORESOURCE_MEM, 0);
-1
drivers/clocksource/h8300_tpu.c
··· 123 123 { 124 124 struct resource *res[2]; 125 125 126 - memset(p, 0, sizeof(*p)); 127 126 p->pdev = pdev; 128 127 129 128 res[CH_L] = platform_get_resource(p->pdev, IORESOURCE_MEM, CH_L);