]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: xmitframe_addmic(): Change return values and type
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Tue, 13 Aug 2019 04:46:35 +0000 (10:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2019 11:20:12 +0000 (13:20 +0200)
commitde868711f1fc558ba2b9cfe709b9dc16a33f8f94
treea214462c877546d4dbfaa22421d5640b166fbf7f
parentf397059bf35f35ad1de011874af4cbb64e74ddc9
staging: rtl8712: xmitframe_addmic(): Change return values and type

Change return values of xmitframe_addmic from _SUCCESS and _FAIL to 0
and -ENOMEM respectively. Modify call sites to check for non-zero values
instead of _FAIL.
Also change return type from sint to int.

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