]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit6da2422efbb7f7e11b7f81dcf62817891b311b85
treea214462c877546d4dbfaa22421d5640b166fbf7f
parent737d4d9ef6261ffa361fa708fac6047ac720688a
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