drivers: char: ipmi: Replaced kmalloc and strcpy with kstrdup
authorAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Thu, 16 May 2013 19:04:24 +0000 (14:04 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 May 2013 20:49:25 +0000 (13:49 -0700)
commit1b6b698f53b3a5382a907308048d77c8bacca4ab
tree94a14065c80ca121f4f4f07a805ed1a828ef0a3c
parentf722406faae2d073cc1d01063d1123c35425939e
drivers: char: ipmi: Replaced kmalloc and strcpy with kstrdup

Replaced calls to kmalloc followed by strcpy with a sincle call to
kstrdup.  Patch found using coccinelle.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/ipmi/ipmi_msghandler.c