charger-manager: Use kmemdup instead of kzalloc + memcpy
authorAndrei Epure <epure.andrei@gmail.com>
Wed, 27 Mar 2013 21:48:21 +0000 (23:48 +0200)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 17 Apr 2013 01:56:38 +0000 (18:56 -0700)
commitf2c6a5fb258bdfa5aa9743b912b6b782fa631959
treeb32a4956b709c99b97d932c20e9e086ed7bce428
parentf6e0b081fb300a4601b064346963cf6bb163f437
charger-manager: Use kmemdup instead of kzalloc + memcpy

Patch found using coccinelle.

Signed-off-by: Andrei Epure <epure.andrei@gmail.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/charger-manager.c