]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: rtl8712: recv_indicatepkt_reorder(): Change return values
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Thu, 8 Aug 2019 06:40:04 +0000 (12:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Aug 2019 17:58:14 +0000 (19:58 +0200)
commit4dbadfaf6a77e3d9ffe7069a8f1a13ae0df00d56
treead5b4fb5dc87d426dd04a0e834354f89b1c03952
parentfc898688aa37c08b872a2228d1f0397d01111652
staging: rtl8712: recv_indicatepkt_reorder(): Change return values

Change return values of recv_indicatepkt_reorder from _SUCCESS/_FAIL to
0/-ENOMEM and -EINVAL.
Within recv_indicatepkt_reorder, modify comparison to true and use the
respective value directly.
Modify call site of recv_indicatepkt_reorder to check for the new return
values.

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