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:
parent
04a6c2118e
commit
065fd87ad3
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue