staging: brcm80211: made fullmac error codes more consistent
authorRoland Vossen <rvossen@broadcom.com>
Tue, 3 May 2011 09:35:21 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 19:42:35 +0000 (12:42 -0700)
commit1bc93cec2cfa53f52681e29eab3c3254eed2e63a
treec16b2f7d70fbebe6750c06b607619e9d6d95ee34
parentb74ac12ecdc23cfc4b13c71f9a2356f51d15c7e8
staging: brcm80211: made fullmac error codes more consistent

Code cleanup. The code contains several checks on the condition
SDIOH_API_SUCCESS(status). On failure, the error returned depended on the
check, instead of being consistent. This has been corrected.

Cc: devel@linuxdriverproject.org
Cc: linux-wireless@vger.kernel.org
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Roland Vossen <rvossen@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmfmac/bcmsdh.c