]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8192e: use memdup_user to simplify code
authorTeodora Baluta <teobaluta@gmail.com>
Sat, 26 Oct 2013 06:18:22 +0000 (09:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 21:47:07 +0000 (14:47 -0700)
commit216249819ff9fac9ba9f2d06c26194669b42a94a
treece62751d2695da7f91669d4e6944333fe655c5ae
parent0c457490ded4fd6529791b650f45091f05b4be45
staging: rtl8192e: use memdup_user to simplify code

Use memdup_user rather than duplicating its implementation. This patch
fixes the following coccinelle warnings:

drivers/staging/rtl8192e/rtl8192e/rtl_core.c:2598:8-15: WARNING opportunity for memdup_user
drivers/staging/rtl8192e/rtllib_softmac.c:3594:9-16: WARNING opportunity for memdup_user

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtllib_softmac.c