From: Fabio Estevam Date: Mon, 6 Jan 2014 12:29:08 +0000 (-0200) Subject: regulator: anatop-regulator: Remove unneeded memset() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git regulator: anatop-regulator: Remove unneeded memset() sreg is allocated via devm_kzalloc(), so there is no need to explicitly zero out rdesc via memset(). Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 3d4997aede1d..862e63e451d0 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -124,7 +124,6 @@ static int anatop_regulator_probe(struct platform_device *pdev) sreg->initdata = initdata; sreg->name = of_get_property(np, "regulator-name", NULL); rdesc = &sreg->rdesc; - memset(rdesc, 0, sizeof(*rdesc)); rdesc->name = sreg->name; rdesc->ops = &anatop_rops; rdesc->type = REGULATOR_VOLTAGE;