sound: oss: sb_common: Used kmemdup instead of kmalloc and memcpy
authorAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Mon, 25 Mar 2013 13:50:34 +0000 (15:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Apr 2013 09:23:00 +0000 (11:23 +0200)
commitb8e63df919d75ef4ecafd66b5123a798b18cc0e7
treed24a0f34045d1dec15a2f6bc4f43408b6587c38a
parent0d9ffc979f761c091a23020692b3502fa776eac0
sound: oss: sb_common: 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/sb_common.c