Commit 552699bc authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: fix line over 80 chars in wilc_wlan_txq_filter_dup_tcp_ack()

Fix "line over 80 characters" issue reported by checkpatch.pl.
Use temporary variable to avoid checkpatch.pl issue.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4998ec33
...@@ -262,10 +262,20 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(struct net_device *dev) ...@@ -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); spin_lock_irqsave(&wilc->txq_spinlock, wilc->txq_spinlock_flags);
for (i = pending_base; i < (pending_base + pending_acks); i++) { for (i = pending_base; i < (pending_base + pending_acks); i++) {
if (i >= MAX_PENDING_ACKS || u32 session_index;
pending_acks_info[i].session_index >= 2 * MAX_TCP_SESSION) 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; 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; struct txq_entry_t *tqe;
tqe = pending_acks_info[i].txqe; tqe = pending_acks_info[i].txqe;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment