staging: rtl8192e: Make use kmemdup
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 4 Aug 2019 02:48:32 +0000 (08:18 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Aug 2019 15:11:33 +0000 (17:11 +0200)
commit36d042bd6865ada4fc5b14e2cb5fd325eeb248db
tree43e3347b2882a0a9116944fdf04fddd42bb68a06
parentd8ba499d53d92fbee87638f3313b2281d04300bd
staging: rtl8192e: Make use kmemdup

As kmemdup API does kmalloc + memcpy . We can make use of it instead of
calling kmalloc and memcpy independetly.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Link: https://lore.kernel.org/r/20190804024832.GA14352@hari-Inspiron-1545
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c