On August 21, 2024 8:55:44 AM Jinjie Ruan <ruanjinjie@xxxxxxxxxx> wrote:
Use kvmemdup instead of kvmalloc() + memcpy() to simplify the code. No functional change.
Thanks Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
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(-)