staging: rtl8712: r8712_update_attrib(): Change return values and type
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 9 Aug 2019 05:23:44 +0000 (10:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2019 14:37:15 +0000 (16:37 +0200)
commitb013c5b8ddacdf966392b6197289721a6e4d4ac9
treea9d331da2ba2166e683e37fbf2f5280256d2db50
parented5d2eaf5f5d59aac17343acebe27b1929e5dcac
staging: rtl8712: r8712_update_attrib(): Change return values and type

Change return values of r8712_update_attrib from _SUCCESS and _FAIL to 0
and -ENOMEM or -EINVAL respectively. Modify call site to check for the
new failure conditions. Also modify the return type from sint to int.

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