staging: rtl8712: r8712_register_cmd_alive(): Change return values
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 22 Jul 2019 09:23:37 +0000 (14:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 07:52:00 +0000 (09:52 +0200)
commit7c93fdf090dfed579bbb40aae0cef0853286848c
tree3fa556fa9b91bd2be448c30dd7029fc4447d2a5a
parent8a73a8c4657013e02bd9e6db975e6c3584c158f8
staging: rtl8712: r8712_register_cmd_alive(): Change return values

Change return values of r8712_register_cmd_alive from _SUCCESS and _FAIL
to 0 and -EINVAL.
Change the return type of this function from sint to int.
Modify its call site to check for 0 instead of _SUCCESS.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190722092341.21030-4-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_cmd.c
drivers/staging/rtl8712/rtl871x_pwrctrl.c
drivers/staging/rtl8712/rtl871x_pwrctrl.h