diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-06 10:29:08 -0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-08 12:50:11 +0000 |
commit | 06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d (patch) | |
tree | 7a3814d55f612e0c96a231f8fbf8d1b7ce2bce14 /drivers/regulator/anatop-regulator.c | |
parent | f2b269b83de35a022a8df5d0133f64021f08592c (diff) | |
download | op-kernel-dev-06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d.zip op-kernel-dev-06e57b6c1e6cfabdaf6fb95207dcefe03c20b06d.tar.gz |
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>
Diffstat (limited to 'drivers/regulator/anatop-regulator.c')
-rw-r--r-- | drivers/regulator/anatop-regulator.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 3d4997a..862e63e 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; |