Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ec6f7f2 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: refactor tcp_process() to avoid extra leading tabs



Refactor tcp_process() to avoid unnecessary leading tabs in the
function.

Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83a953e2
Loading
Loading
Loading
Loading
+28 −24
Original line number Original line Diff line number Diff line
@@ -162,15 +162,19 @@ static inline void tcp_process(struct net_device *dev, struct txq_entry_t *tqe)
	unsigned long flags;
	unsigned long flags;
	struct wilc_vif *vif = netdev_priv(dev);
	struct wilc_vif *vif = netdev_priv(dev);
	struct wilc *wilc = vif->wilc;
	struct wilc *wilc = vif->wilc;
	const struct iphdr *ip_hdr_ptr;
	const struct tcphdr *tcp_hdr_ptr;
	u32 IHL, total_length, data_offset;


	spin_lock_irqsave(&wilc->txq_spinlock, flags);
	spin_lock_irqsave(&wilc->txq_spinlock, flags);


	if (eth_hdr_ptr->h_proto == htons(ETH_P_IP)) {
	if (eth_hdr_ptr->h_proto != htons(ETH_P_IP))
		const struct iphdr *ip_hdr_ptr = buffer + ETH_HLEN;
		goto out;


		if (ip_hdr_ptr->protocol == IPPROTO_TCP) {
	ip_hdr_ptr = buffer + ETH_HLEN;
			const struct tcphdr *tcp_hdr_ptr;

			u32 IHL, total_length, data_offset;
	if (ip_hdr_ptr->protocol != IPPROTO_TCP)
		goto out;


	IHL = ip_hdr_ptr->ihl << 2;
	IHL = ip_hdr_ptr->ihl << 2;
	tcp_hdr_ptr = buffer + ETH_HLEN + IHL;
	tcp_hdr_ptr = buffer + ETH_HLEN + IHL;
@@ -196,8 +200,8 @@ static inline void tcp_process(struct net_device *dev, struct txq_entry_t *tqe)


		add_tcp_pending_ack(ack_no, i, tqe);
		add_tcp_pending_ack(ack_no, i, tqe);
	}
	}
		}

	}
out:
	spin_unlock_irqrestore(&wilc->txq_spinlock, flags);
	spin_unlock_irqrestore(&wilc->txq_spinlock, flags);
}
}