[BATTERY] power_supply_leds: use kasprintf
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 17 Nov 2007 10:55:58 +0000 (19:55 +0900)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 1 Feb 2008 23:42:59 +0000 (02:42 +0300)
commit4d24473c435c7c3ad7b43e43b70cdb16aba25443
tree576d2cd5a41471eae0e57fa3c5a66e44cdec39a4
parent25f12141e2be96e904239d963e25818b8854e72f
[BATTERY] power_supply_leds: use kasprintf

Use kasprintf instead of kmalloc()-strcpy()-strcat().

Cc: Anton Vorontsov <cbou@mail.ru>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Anton Vorontsov <cbou@mail.ru>
drivers/power/power_supply_leds.c