staging: rtl8188eu: return an error code, not a boolean
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 19 May 2015 09:35:26 +0000 (11:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 31 May 2015 03:01:37 +0000 (12:01 +0900)
commit7fc0406f4875a414e4243706f98967064a4fa962
tree1a7e99d23fdeba75abaacb387907eb2cb29c5299
parent8b9ffb43ac1deabc80c2622a293a12d5f1a8d0ac
staging: rtl8188eu: return an error code, not a boolean

"If the name of a function is an action or an imperative command,
the function should return an error-code integer." (Documentation/CodingStyle)

Several action-like functions in this driver return a boolean: _SUCCESS = 1 on
success, _FAIL = 0 on error, defined in
drivers/staging/rtl8188eu/include/osdep_service.h.

Change rtw_start_drv_threads() to return a proper 0-or-error value.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Greg Kroah-Hartman <gregkh@linux.com>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/os_intfs.c