staging: r8712u: Most return-values changed from -1 to proper errno macros.
authorAli Bahar <ali@internetdog.org>
Sat, 3 Sep 2011 19:14:24 +0000 (03:14 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 7 Sep 2011 00:00:36 +0000 (17:00 -0700)
commit2192e60654c2b91de45dce44a23723f725603ce1
tree3c5421f4ee2859c099fccd32edef3e75a6215812
parent5d3da4a20a271e3cf5496a50cbb8118aa019374f
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>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_ioctl_set.c
drivers/staging/rtl8712/rtl871x_ioctl_set.h