staging: rtl8712: Change return values of r8712_setdatarate_cmd()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 10 Jun 2019 08:22:53 +0000 (13:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2019 09:39:31 +0000 (11:39 +0200)
commit1f1e13017d64dc5b57eaff094da5148248cf080d
tree3d287f51f7e7e1080a81597d6eead45e00df0aa8
parentc77a6794c0fe543df7226ab045e0f507a0b24aee
staging: rtl8712: Change return values of r8712_setdatarate_cmd()

Change the return values of function r8712_setdatarate_cmd from _SUCCESS
and _FAIL to 0 and -ENOMEM respectively.
Change the return type of the function from u8 to int to reflect this.
Change the call site of the function to check for 0 instead of _SUCCESS.
Return the value at the call site directly instead of storing it in a
return variable.
Remove now-unused return variable.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_cmd.c
drivers/staging/rtl8712/rtl871x_cmd.h
drivers/staging/rtl8712/rtl871x_ioctl_linux.c