power: bcl_peripheral: remove the unnecessary memset ZERO of the chip.

The bcl_perph is allocated by devm_kzalloc, this ensures that the
allocation is zeroed. There is no need to zero it out again.

Change-Id: Ia808f2a93e4610677f40c87892063e0497213ae1
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
Abhijeet Dharmapurikar 2016-01-11 20:41:37 -08:00 committed by Rohit Vaswani
parent 04a6c2118e
commit 065fd87ad3

View file

@ -1019,7 +1019,6 @@ static int bcl_probe(struct spmi_device *spmi)
pr_err("Memory alloc failed\n");
return -ENOMEM;
}
memset(bcl_perph, 0, sizeof(struct bcl_device));
bcl_perph->spmi = spmi;
bcl_perph->dev = &(spmi->dev);