staging: rtl8712: Remove unnecessary 'else'
authorNamrata A Shettar <namrataashettar@gmail.com>
Sun, 25 Sep 2016 18:35:49 +0000 (00:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:08:05 +0000 (13:08 +0200)
Remove unnecessary 'else' after 'return' to resolve checkpatch issue.

Signed-off-by: Namrata A Shettar <namrataashettar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_recv.c

index 66f0e0a35167df655ea07c3c59302633a185e825..cf46592be47238e581dfb5fe13b902a59621d24b 100644 (file)
@@ -508,8 +508,7 @@ 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;
-               else
-                       break;
+               break;
        }
        list_del_init(&(prframe->u.hdr.list));
        list_add_tail(&(prframe->u.hdr.list), plist);