mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
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: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4998ec33cc
commit
552699bcab
1 changed files with 13 additions and 3 deletions
|
@ -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;
|
||||
if (pending_acks_info[i].ack_num < ack_session_info[pending_acks_info[i].session_index].bigger_ack_num) {
|
||||
|
||||
session_index = pending_acks_info[i].session_index;
|
||||
|
||||
if (session_index >= 2 * MAX_TCP_SESSION)
|
||||
break;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue