sound: oss: uart401: Used kmemdup instead of kmalloc and memcpy
authorAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Mon, 25 Mar 2013 13:46:49 +0000 (15:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Apr 2013 09:22:52 +0000 (11:22 +0200)
commit0d9ffc979f761c091a23020692b3502fa776eac0
treeceefe9779d4e7cccdc9d156cc092d3996321f0db
parent4abdbd1c2c1832e7270e546307ffb3e56b286db2
sound: oss: uart401: Used kmemdup instead of kmalloc and memcpy

Used kmemdup instead of replicating it's behaviour with kmalloc followed
by memcpy.
Patch found using coccinelle.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/uart401.c