mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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 <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
f2b269b83d
commit
06e57b6c1e
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue