brcmfmac: use kmemdup
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Thu, 19 May 2016 13:59:03 +0000 (19:29 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Jun 2016 14:26:48 +0000 (17:26 +0300)
commitd464fd8b48f322223ba12e0d3eb0a2e007eaf03e
treeaa25a4dc30ae9b09728997e30756c47b7cbeae17
parent2cce76c3fab410520610a7d2f52faebc3cfcf843
brcmfmac: use kmemdup

Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c