]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e6a679882bd9bca727b3198268dc0c7476da7bc
treee863a1b95d2ff294d6ba5a5f98bde2c940f150e3
parente9313c4109c7dff52ba56911b13bc91af86315b9
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