brcmfmac: assure bcdc dcmd api does not return value > 0
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Mon, 22 Jan 2018 20:46:39 +0000 (21:46 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 16:02:38 +0000 (18:02 +0200)
commit5242a5444e0b6464d7455beb55d936dd192b5e9d
tree57827c931ce7f32988da71d4d0e47ba0cd841d29
parentc93fe71c91d0ae9eb6a82e887cd076c51d647d5f
brcmfmac: assure bcdc dcmd api does not return value > 0

The protocol layer api defines callbacks for dongle commands.
Although not really well documented these should only return an
error code in case of an error, or 0 upon success. In the bcdc
protocol it can return value above 0 and we carry a fix in the
caller of the protocol layer api. This patch makes it adhere to
the intent of the api as described above.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.c