]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable WinSize
authorTree Davies <tdavies@darkphysics.net>
Tue, 21 May 2024 03:17:08 +0000 (20:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:16:20 +0000 (13:16 +0200)
Rename variable WinSize to win_size
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240521031718.17852-22-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c

index ab2aa1a86c510449c9750a2f6c3111ee7d258078..50687f3dce477c097040d4f55e63e38355ce2ac8 100644 (file)
@@ -526,19 +526,19 @@ static void rx_reorder_indicate_packet(struct rtllib_device *ieee,
 {
        struct rt_hi_throughput *ht_info = ieee->ht_info;
        struct rx_reorder_entry *pReorderEntry = NULL;
-       u8 WinSize = ht_info->rx_reorder_win_size;
+       u8 win_size = ht_info->rx_reorder_win_size;
        u16 win_end = 0;
        u8 index = 0;
        bool bMatchWinStart = false, bPktInBuf = false;
        unsigned long flags;
 
        netdev_dbg(ieee->dev,
-                  "%s(): Seq is %d, ts->rx_indicate_seq is %d, WinSize is %d\n",
-                  __func__, SeqNum, ts->rx_indicate_seq, WinSize);
+                  "%s(): Seq is %d, ts->rx_indicate_seq is %d, win_size is %d\n",
+                  __func__, SeqNum, ts->rx_indicate_seq, win_size);
 
        spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
 
-       win_end = (ts->rx_indicate_seq + WinSize - 1) % 4096;
+       win_end = (ts->rx_indicate_seq + win_size - 1) % 4096;
        /* Rx Reorder initialize condition.*/
        if (ts->rx_indicate_seq == 0xffff)
                ts->rx_indicate_seq = SeqNum;
@@ -569,11 +569,11 @@ static void rx_reorder_indicate_packet(struct rtllib_device *ieee,
                ts->rx_indicate_seq = (ts->rx_indicate_seq + 1) % 4096;
                bMatchWinStart = true;
        } else if (SN_LESS(win_end, SeqNum)) {
-               if (SeqNum >= (WinSize - 1))
-                       ts->rx_indicate_seq = SeqNum + 1 - WinSize;
+               if (SeqNum >= (win_size - 1))
+                       ts->rx_indicate_seq = SeqNum + 1 - win_size;
                else
                        ts->rx_indicate_seq = 4095 -
-                                            (WinSize - (SeqNum + 1)) + 1;
+                                            (win_size - (SeqNum + 1)) + 1;
                netdev_dbg(ieee->dev,
                           "Window Shift! IndicateSeq: %d, NewSeq: %d\n",
                           ts->rx_indicate_seq, SeqNum);