brcmfmac: of: Use devm_kstrdup for board_type & check for errors
authorHector Martin <marcan@marcan.st>
Fri, 7 Jan 2022 03:30:46 +0000 (12:30 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 18 Jan 2022 11:22:07 +0000 (20:22 +0900)
commitcc44c86950084bc3437485288390841cf117c0d1
tree9169719ca3f6bcbc707b39c61eefd71dc78fcf83
parentdf0a2c46417ccd3f140bb335db380a7685056718
brcmfmac: of: Use devm_kstrdup for board_type & check for errors

This was missing a NULL check, and we can collapse the strlen/alloc/copy
into a devm_kstrdup().

Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/of.c