ath6kl: Minor cleanup in min_hdr_len computation
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Sun, 14 Aug 2011 11:38:34 +0000 (17:08 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 31 Aug 2011 07:10:53 +0000 (10:10 +0300)
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/txrx.c

index d546051e5953e85bfe2266ef90ea5b073e4608cd..fb67c248f81593a74e82fbcf2f0dc08668a1c3d7 100644 (file)
@@ -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;