Tag: f2c6a5fb258bdfa5aa9743b912b6b782fa631959

charger-manager: Use kmemdup instead of kzalloc + memcpy

Author: Andrei Epure <epure.andrei@gmail.com> Patch found using coccinelle. Signed-off-by: Andrei Epure Signed-off-by: Anton Vorontsov — drivers/power/charger-manager.c | 3 +– 1 file changed, 1 insertion(+), 2 deletions(-)   diff –git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 8acc3f8..fefc39f 100644 — a/drivers/power/charger-manager.c +++ b/drivers/power/charger-manager.c @@ -1485,13 +1485,12 @@ static int charger_manager_probe(struct platform_device *pdev)   /* Basic Values. Unspecified are Null or …

Continue reading