]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: r8712_wlanhdr_to_ethhdr(): Change return values
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Thu, 8 Aug 2019 06:40:05 +0000 (12:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Aug 2019 17:58:14 +0000 (19:58 +0200)
commit328ee517b66a9750642f5450fe0f50a1abe05669
tree9a392c5abcd2fa2d773a49d8f742ff35d727de04
parent5d76cf84678d77dcb996de2fbc5ec36a7123ef41
staging: rtl8712: r8712_wlanhdr_to_ethhdr(): Change return values

Change return values of r8712_wlanhdr_to_ethhdr from _SUCCESS/_FAIL to
0/-ENOMEM. Modify the function containing a call site of
r8712_wlanhdr_to_ethhdr so that it compares the return value to
0/-ENOMEM instead of _SUCCESS/_FAIL.
Change the return type of r8712_wlanhdr_to_ethhdr from sint to int to
match its prototype in corresponding .h file.

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