From 065fd87ad33b0b00dcbce1ce8880590492aec658 Mon Sep 17 00:00:00 2001 From: Abhijeet Dharmapurikar Date: Mon, 11 Jan 2016 20:41:37 -0800 Subject: [PATCH] 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 --- drivers/power/bcl_peripheral.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/bcl_peripheral.c b/drivers/power/bcl_peripheral.c index 64a648c2be5b..00f8f9db1694 100644 --- a/drivers/power/bcl_peripheral.c +++ b/drivers/power/bcl_peripheral.c @@ -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);