Commit 8681a1d4 authored by Matthew Kilgore's avatar Matthew Kilgore Committed by Greg Kroah-Hartman

Fixes: 3d44a78f ("staging: rtl8712: Remove unnecessary 'else'")

An "unnecessary" 'else' was removed due to complains from checkpatch.pl
as it is preceded by a 'return', however the 'else' branch is necessary
as an earlier branch of the 'if' falls through. By removing the 'else',
that route now hits the 'break' and the 'while' loop exits prematurely.

This commit reverts that change and puts the original 'else' back in
place.
Signed-off-by: default avatarMatthew Kilgore <mattkilgore12@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d0a2c5f
...@@ -508,6 +508,7 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, ...@@ -508,6 +508,7 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl,
plist = plist->next; plist = plist->next;
else if (SN_EQUAL(pnextattrib->seq_num, pattrib->seq_num)) else if (SN_EQUAL(pnextattrib->seq_num, pattrib->seq_num))
return false; return false;
else
break; break;
} }
list_del_init(&(prframe->u.hdr.list)); list_del_init(&(prframe->u.hdr.list));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment