Staging: rtl8192u: ieee80211: Fix if-else indentation warning
authorPuranjay Mohan <puranjay12@gmail.com>
Wed, 1 May 2019 20:46:20 +0000 (02:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 17:43:18 +0000 (19:43 +0200)
Add tabs after if and else statements to
fix the following warnings from checkpatch.pl

WARNING: suspect code indent for conditional statements (8, 8)
+ if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
+ pBA->param_set.field.buffer_size = 1;

WARNING: suspect code indent for conditional statements (8, 8)
+ else
+ pBA->param_set.field.buffer_size = 32;

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c

index 37ec3eee865123df55f1ca01ac5bf3f0b9cb1957..53869b3c985cd297bb266508b692c7669bb60ffd 100644 (file)
@@ -384,9 +384,9 @@ int ieee80211_rx_ADDBAReq(struct ieee80211_device *ieee, struct sk_buff *skb)
        pBA->start_seq_ctrl = *pBaStartSeqCtrl;
        //for half N mode we only aggregate 1 frame
        if (ieee->GetHalfNmodeSupportByAPsHandler(ieee->dev))
-       pBA->param_set.field.buffer_size = 1;
+               pBA->param_set.field.buffer_size = 1;
        else
-       pBA->param_set.field.buffer_size = 32;
+               pBA->param_set.field.buffer_size = 32;
        ActivateBAEntry(ieee, pBA, pBA->timeout_value);
        ieee80211_send_ADDBARsp(ieee, dst, pBA, ADDBA_STATUS_SUCCESS);