Message ID | CAPgLHd8GkC50rYFD0zDRuE3o0JUHBCnSGXQi2jNL9DdK+8pNDA@mail.gmail.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On 04/19/2013 04:10 AM, Wei Yongjun wrote: > From: Wei Yongjun <yongjun_wei@trendmicro.com.cn> > > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > Thanks for the patch. However, I would like to solve it differently. I will sent out a patch for handling this. Regards, Arend > Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> > --- > drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c > index 1bcd58c..df2ac2f 100644 > --- a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c > +++ b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c > @@ -1875,8 +1875,9 @@ int brcmf_fws_init(struct brcmf_pub *drvr) > goto fail; > } > > - if (brcmf_fweh_register(drvr, BRCMF_E_FIFO_CREDIT_MAP, > - brcmf_fws_notify_credit_map)) { > + rc = brcmf_fweh_register(drvr, BRCMF_E_FIFO_CREDIT_MAP, > + brcmf_fws_notify_credit_map); > + if (rc) { > brcmf_err("register credit map handler failed\n"); > goto fail; > } > > -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c index 1bcd58c..df2ac2f 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/fwsignal.c @@ -1875,8 +1875,9 @@ int brcmf_fws_init(struct brcmf_pub *drvr) goto fail; } - if (brcmf_fweh_register(drvr, BRCMF_E_FIFO_CREDIT_MAP, - brcmf_fws_notify_credit_map)) { + rc = brcmf_fweh_register(drvr, BRCMF_E_FIFO_CREDIT_MAP, + brcmf_fws_notify_credit_map); + if (rc) { brcmf_err("register credit map handler failed\n"); goto fail; }