staging: ks7010: replace kmalloc() + memcpy() with kmemdup()
authorJi-Hun Kim <ji_hun.kim@samsung.com>
Fri, 6 Apr 2018 04:57:20 +0000 (13:57 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 12:24:47 +0000 (14:24 +0200)
commit47bda74a2b1978f0740fdd025dc7b44c026764a8
tree2ca2859c06c4cf9bcdd0bfb200add188dff6a94c
parentbd6dad98f68bdfcacf3c04c138fee504ee8fcd35
staging: ks7010: replace kmalloc() + memcpy() with kmemdup()

Use kmemdup rather than duplicating its implementation.

Signed-off-by: Ji-Hun Kim <ji_hun.kim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks7010_sdio.c