staging: rtl8712: Fix enqueue_reorder_recvframe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 29 Sep 2020 10:35:48 +0000 (13:35 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Oct 2020 08:55:17 +0000 (10:55 +0200)
commit29838144f280fc03ca06a621568f34e1d0a65a4f
treec99f1d1ea5a47e82f2451bf078bae4a27667114f
parente6ac17de7815d6a094303c964813f6cf64da680a
staging: rtl8712: Fix enqueue_reorder_recvframe()

The logic of this function was accidentally broken by a checkpatch
inspired cleanup.  I've modified the code to restore the original
behavior and also make checkpatch happy.

Fixes: 98fe05e21a6e ("staging: rtl8712: Remove unnecesary else after return statement.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200929103548.GA493135@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_recv.c