brcm80211: fix error code in brcmf_pcie_exit_download_state()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 27 Nov 2015 13:43:27 +0000 (16:43 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Nov 2015 12:58:59 +0000 (14:58 +0200)
commit7941c2129a4bc189e17e3188a7d315d946caa1d6
treec3dc893f6d3f52a3743ce058d0cdcf49ff5c3b24
parent6d91ff7acc903b91488c17d781ebfecbce45285a
brcm80211: fix error code in brcmf_pcie_exit_download_state()

The original code returns 1 on failure and 0 on success but the caller
was expecting an error code on failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c