Fixes: 3d44a78f0d
("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: Matthew Kilgore <mattkilgore12@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1d0a2c5f2c
commit
8681a1d47b
1 changed files with 2 additions and 1 deletions
|
@ -508,7 +508,8 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl,
|
|||
plist = plist->next;
|
||||
else if (SN_EQUAL(pnextattrib->seq_num, pattrib->seq_num))
|
||||
return false;
|
||||
break;
|
||||
else
|
||||
break;
|
||||
}
|
||||
list_del_init(&(prframe->u.hdr.list));
|
||||
list_add_tail(&(prframe->u.hdr.list), plist);
|
||||
|
|
Loading…
Reference in a new issue