brcmsmac: Use kstrdup to simplify code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 8 Jul 2015 20:22:46 +0000 (22:22 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Jul 2015 14:59:26 +0000 (17:59 +0300)
commit77661208a87b458f353fd0b7a4729cf2887449a6
tree4adc8775fad8f8bd5e2013fda489fd4d02644f4c
parent251086f588720277a6f5782020a648ce32c4e00b
brcmsmac: Use kstrdup to simplify code

Replace a kmalloc+strcpy by an equivalent kstrdup in order to improve
readability.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c