ALSA: echoaudio: Replace kmalloc + memcpy with kmemdup
authorChuhong Yuan <hslester96@gmail.com>
Thu, 25 Jul 2019 02:09:24 +0000 (10:09 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 25 Jul 2019 15:50:07 +0000 (17:50 +0200)
commit5e291a908869dd4fe70832a89678c6b0c1b8c481
tree04b8f324ba8e5b13b76de283819270df62ce4799
parenta30f1743e4f57b359903fd679476b2903e7e5dac
ALSA: echoaudio: Replace kmalloc + memcpy with kmemdup

Instead of using kmalloc + memcpy, use kmemdup
to simplify the code.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/echoaudio.c