diff options
author | Ali Bahar <ali@internetdog.org> | 2011-09-04 03:14:24 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-06 17:00:36 -0700 |
commit | 2192e60654c2b91de45dce44a23723f725603ce1 (patch) | |
tree | 3c5421f4ee2859c099fccd32edef3e75a6215812 /drivers/staging/rtl8712/rtl871x_ioctl_set.h | |
parent | staging: r8712u: Tracking kmemleak false positives. (diff) | |
download | linux-dev-2192e60654c2b91de45dce44a23723f725603ce1.tar.xz linux-dev-2192e60654c2b91de45dce44a23723f725603ce1.zip |
staging: r8712u: Most return-values changed from -1 to proper errno macros.
The ioctl handlers were frequently returning -1 upon failure. Most of
these have now been changed to proper errno macros.
The few remaining ones have been left untouched because either the
handler is not called (and so cannot be tested), or the function never
fails (and so cannot be system-tested), or requires new code to
distinguish its failures.
Signed-off-by: Ali Bahar <ali@internetDog.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_ioctl_set.h')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_ioctl_set.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_set.h b/drivers/staging/rtl8712/rtl871x_ioctl_set.h index de0a8482c988..2c94cd151c96 100644 --- a/drivers/staging/rtl8712/rtl871x_ioctl_set.h +++ b/drivers/staging/rtl8712/rtl871x_ioctl_set.h @@ -47,7 +47,7 @@ u8 r8712_set_802_11_disassociate(struct _adapter *padapter); u8 r8712_set_802_11_bssid_list_scan(struct _adapter *padapter); -u8 r8712_set_802_11_infrastructure_mode(struct _adapter *padapter, +void r8712_set_802_11_infrastructure_mode(struct _adapter *padapter, enum NDIS_802_11_NETWORK_INFRASTRUCTURE networktype); void r8712_set_802_11_ssid(struct _adapter *padapter, |