libertas: remove unreachable code from process_rxed_802_11_packet()
The function is only ever called if we're in rtap mode. So the bit in it which is conditional on rtap mode seems a little superfluous. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
2eb188a1c5
commit
180be755ae
1 changed files with 32 additions and 43 deletions
|
@ -355,13 +355,7 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,
|
|||
skb->len, sizeof(struct rxpd), skb->len - sizeof(struct rxpd));
|
||||
|
||||
/* create the exported radio header */
|
||||
if (priv->monitormode == LBS_MONITOR_OFF) {
|
||||
/* no radio header */
|
||||
/* chop the rxpd */
|
||||
skb_pull(skb, sizeof(struct rxpd));
|
||||
}
|
||||
|
||||
else {
|
||||
/* radiotap header */
|
||||
radiotap_hdr.hdr.it_version = 0;
|
||||
/* XXX must check this value for pad */
|
||||
|
@ -393,13 +387,8 @@ static int process_rxed_802_11_packet(struct lbs_private *priv,
|
|||
__func__);
|
||||
}
|
||||
|
||||
pradiotap_hdr =
|
||||
(struct rx_radiotap_hdr *)skb_push(skb,
|
||||
sizeof(struct
|
||||
rx_radiotap_hdr));
|
||||
memcpy(pradiotap_hdr, &radiotap_hdr,
|
||||
sizeof(struct rx_radiotap_hdr));
|
||||
}
|
||||
pradiotap_hdr = (void *)skb_push(skb, sizeof(struct rx_radiotap_hdr));
|
||||
memcpy(pradiotap_hdr, &radiotap_hdr, sizeof(struct rx_radiotap_hdr));
|
||||
|
||||
/* Take the data rate from the rxpd structure
|
||||
* only if the rate is auto
|
||||
|
|
Loading…
Reference in a new issue