brcmfmac: check brcmf_bus_get_memdump result for error
authorRafał Miłecki <rafal@milecki.pl>
Mon, 30 Jan 2017 15:09:51 +0000 (16:09 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 2 Feb 2017 06:14:25 +0000 (08:14 +0200)
commitf4737a62033d7f3e0db740c449fc62119da7ab8a
tree70ec1b8120d4d2941d814589ec038db26b272560
parent62e13097c46c69dbd7544ab2cd585ccf48f360a4
brcmfmac: check brcmf_bus_get_memdump result for error

This method may be unsupported (see: USB bus) or may just fail (see:
SDIO bus).
While at it rework logic in brcmf_sdio_bus_get_memdump function to avoid
too many conditional code nesting levels.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.c