staging: rtl8187se: use memdup_user to simplify code
authorTeodora Baluta <teobaluta@gmail.com>
Fri, 25 Oct 2013 09:00:14 +0000 (12:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Oct 2013 21:34:42 +0000 (14:34 -0700)
commitc9a6ffa6c09c744a5f2521aa96eebf0557365893
treee863a1b95d2ff294d6ba5a5f98bde2c940f150e3
parentd5f9f1e3a9945198be1bf20f0e110af9e29f9970
staging: rtl8187se: use memdup_user to simplify code

This patch fixes the following coccinelle warning to use memdup_user
rather than duplicating its implementation:

drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c:2947: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/rtl8187se/ieee80211/ieee80211_softmac.c