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

Commit 06e57b6c authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent f2b269b8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;