Skip to content

Commit

Permalink
regulator: anatop-regulator: Remove unneeded memset()
Browse files Browse the repository at this point in the history
sreg is allocated via devm_kzalloc(), so there is no need to explicitly zero out
rdesc via memset().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Jan 8, 2014
1 parent f2b269b commit 06e57b6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/regulator/anatop-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 06e57b6

Please sign in to comment.