From: Vasanthakumar Thiagarajan Date: Sun, 14 Aug 2011 11:38:34 +0000 (+0530) Subject: ath6kl: Minor cleanup in min_hdr_len computation X-Git-Tag: MMI-PSA29.97-13-9~18194^2~83^2~133^2~93 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67f9178fd93d40b72e2db2909f74ead070437317;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ath6kl: Minor cleanup in min_hdr_len computation Signed-off-by: Vasanthakumar Thiagarajan Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c index d546051e5953..fb67c248f815 100644 --- a/drivers/net/wireless/ath/ath6kl/txrx.c +++ b/drivers/net/wireless/ath/ath6kl/txrx.c @@ -1065,9 +1065,8 @@ void ath6kl_rx(struct htc_target *target, struct htc_packet *packet) return; } - min_hdr_len = sizeof(struct ethhdr); - min_hdr_len += sizeof(struct wmi_data_hdr) + - sizeof(struct ath6kl_llc_snap_hdr); + min_hdr_len = sizeof(struct ethhdr) + sizeof(struct wmi_data_hdr) + + sizeof(struct ath6kl_llc_snap_hdr); dhdr = (struct wmi_data_hdr *) skb->data;