staging: rtl8192e: Use kmemdup for duplicating memory

Instead of allocating memory (kmalloc) and copying (memcpy)
from source, memory can be duplicated using kmemdup

Signed-off-by: Hema Prathaban <hemaklnce@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Hema Prathaban 2013-05-14 21:01:22 +05:30 • committed by Greg Kroah-Hartman
commit 6dea0da1ff