Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 065fd87a authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Rohit Vaswani
Browse files

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: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 04a6c211
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);