Use kvmemdup instead of kvmalloc() + memcpy() to simplify the code.
No functional change.
Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
---
v2:
- Update the commit subject.
- Remove goto lablel and retun -ENOMEM instead.
---
.../net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)