]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Staging: rtl8192e: Rename variable WinEnd
authorTree Davies <tdavies@darkphysics.net>
Tue, 21 May 2024 03:17:07 +0000 (20:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Jun 2024 11:16:20 +0000 (13:16 +0200)
Rename variable WinEnd to win_end
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-21-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c

index 3a637731506c2917c3e0fcedf973a00f6b8881d3..ab2aa1a86c510449c9750a2f6c3111ee7d258078 100644 (file)
@@ -527,7 +527,7 @@ 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;
-       u16 WinEnd = 0;
+       u16 win_end = 0;
        u8 index = 0;
        bool bMatchWinStart = false, bPktInBuf = false;
        unsigned long flags;
@@ -538,7 +538,7 @@ static void rx_reorder_indicate_packet(struct rtllib_device *ieee,
 
        spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
 
-       WinEnd = (ts->rx_indicate_seq + WinSize - 1) % 4096;
+       win_end = (ts->rx_indicate_seq + WinSize - 1) % 4096;
        /* Rx Reorder initialize condition.*/
        if (ts->rx_indicate_seq == 0xffff)
                ts->rx_indicate_seq = SeqNum;
@@ -563,12 +563,12 @@ static void rx_reorder_indicate_packet(struct rtllib_device *ieee,
 
        /* Sliding window manipulation. Conditions includes:
         * 1. Incoming SeqNum is equal to WinStart =>Window shift 1
-        * 2. Incoming SeqNum is larger than the WinEnd => Window shift N
+        * 2. Incoming SeqNum is larger than the win_end => Window shift N
         */
        if (SN_EQUAL(SeqNum, ts->rx_indicate_seq)) {
                ts->rx_indicate_seq = (ts->rx_indicate_seq + 1) % 4096;
                bMatchWinStart = true;
-       } else if (SN_LESS(WinEnd, SeqNum)) {
+       } else if (SN_LESS(win_end, SeqNum)) {
                if (SeqNum >= (WinSize - 1))
                        ts->rx_indicate_seq = SeqNum + 1 - WinSize;
                else