staging: rtl8192u: Adjust 'if' to follow Kernel coding Style
authorBhanusree Pola <bhanusreemahesh@gmail.com>
Mon, 11 Mar 2019 15:41:41 +0000 (21:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:23 +0000 (07:05 +0100)
-Adjust spaces around if and the condition expression to
maintain Linux Kernel Coding style.
-Remove unnecessary braces around if-else as only single statement is executed.

Signed-off-by: Bhanusree Pola <bhanusreemahesh@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c

index 52c655b423cea9c8ae6ad6be664827d36405fec6..6009fe0e1d4fc89db6854699b294874f53748302 100644 (file)
@@ -513,18 +513,12 @@ static bool AddReorderEntry(struct rx_ts_record *pTS, struct rx_reorder_entry *p
        struct list_head *pList = &pTS->rx_pending_pkt_list;
        while(pList->next != &pTS->rx_pending_pkt_list)
        {
-               if( SN_LESS(pReorderEntry->SeqNum, list_entry(pList->next, struct rx_reorder_entry, List)->SeqNum) )
-               {
+               if (SN_LESS(pReorderEntry->SeqNum, list_entry(pList->next, struct rx_reorder_entry, List)->SeqNum))
                        pList = pList->next;
-               }
-               else if( SN_EQUAL(pReorderEntry->SeqNum, list_entry(pList->next, struct rx_reorder_entry, List)->SeqNum) )
-               {
+               else if (SN_EQUAL(pReorderEntry->SeqNum, list_entry(pList->next, struct rx_reorder_entry, List)->SeqNum))
                        return false;
-               }
                else
-               {
                        break;
-               }
        }
        pReorderEntry->List.next = pList->next;
        pReorderEntry->List.next->prev = &pReorderEntry->List;