staging: brcm80211: use native error code in brcmf_c_pattern_atoh()
authorArend van Spriel <arend@broadcom.com>
Mon, 8 Aug 2011 13:58:06 +0000 (15:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 19:59:56 +0000 (12:59 -0700)
commitfee32378cad26dbe3f16009ba8ce43f483d10a19
treed39eef084ad5fd0043bf52e02a5388ebf0bea1ab
parenta918137ab54598dc8350079c7a14d7f77e5c4f54
staging: brcm80211: use native error code in brcmf_c_pattern_atoh()

The function brcmf_c_pattern_atoh() returned meaningless -1 value.
These have been replaced by linux error code -EINVAL.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/dhd_common.c