]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: wilc1000: fix line over 80 chars in wilc_wlan_txq_filter_dup_tcp_ack()
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 16 Feb 2018 15:11:48 +0000 (20:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 16:31:22 +0000 (17:31 +0100)
Fix "line over 80 characters" issue reported by checkpatch.pl.
Use temporary variable to avoid checkpatch.pl issue.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c

index 391ecd5de4b91073e229b5a7d97b5ca2c532a258..98cd949f81152d7bfd67cb697bf2c0a81a0ba053 100644 (file)
@@ -262,10 +262,20 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev)
 
        spin_lock_irqsave(&wilc->txq_spinlock, wilc->txq_spinlock_flags);
        for (i = pending_base; i < (pending_base + pending_acks); i++) {
-               if (i >= MAX_PENDING_ACKS ||
-                   pending_acks_info[i].session_index >= 2 * MAX_TCP_SESSION)
+               u32 session_index;
+               u32 bigger_ack_num;
+
+               if (i >= MAX_PENDING_ACKS)
+                       break;
+
+               session_index = pending_acks_info[i].session_index;
+
+               if (session_index >= 2 * MAX_TCP_SESSION)
                        break;
-               if (pending_acks_info[i].ack_num < ack_session_info[pending_acks_info[i].session_index].bigger_ack_num) {
+
+               bigger_ack_num = ack_session_info[session_index].bigger_ack_num;
+
+               if (pending_acks_info[i].ack_num < bigger_ack_num) {
                        struct txq_entry_t *tqe;
 
                        tqe = pending_acks_info[i].txqe;