Commit dc14b02c authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

rtlwifi: Remove unused calls to rtl_is_special_data()

When routine rtl_is_special_data() is called with false as its last argument,
and the returned value is not tested, the call is essentially an extended
no-op. Accordingly, these calls may be removed.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Reported-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 684e55f5
...@@ -688,8 +688,6 @@ static void _rtl_receive_one(struct ieee80211_hw *hw, struct sk_buff *skb, ...@@ -688,8 +688,6 @@ static void _rtl_receive_one(struct ieee80211_hw *hw, struct sk_buff *skb,
rtlpriv->stats.rxbytesunicast += skb->len; rtlpriv->stats.rxbytesunicast += skb->len;
} }
rtl_is_special_data(hw, skb, false);
if (ieee80211_is_data(fc)) { if (ieee80211_is_data(fc)) {
rtlpriv->cfg->ops->led_control(hw, LED_CTL_RX); rtlpriv->cfg->ops->led_control(hw, LED_CTL_RX);
......
...@@ -475,8 +475,6 @@ static void _rtl_usb_rx_process_agg(struct ieee80211_hw *hw, ...@@ -475,8 +475,6 @@ static void _rtl_usb_rx_process_agg(struct ieee80211_hw *hw,
rtlpriv->stats.rxbytesunicast += skb->len; rtlpriv->stats.rxbytesunicast += skb->len;
} }
rtl_is_special_data(hw, skb, false);
if (ieee80211_is_data(fc)) { if (ieee80211_is_data(fc)) {
rtlpriv->cfg->ops->led_control(hw, LED_CTL_RX); rtlpriv->cfg->ops->led_control(hw, LED_CTL_RX);
...@@ -517,8 +515,6 @@ static void _rtl_usb_rx_process_noagg(struct ieee80211_hw *hw, ...@@ -517,8 +515,6 @@ static void _rtl_usb_rx_process_noagg(struct ieee80211_hw *hw,
rtlpriv->stats.rxbytesunicast += skb->len; rtlpriv->stats.rxbytesunicast += skb->len;
} }
rtl_is_special_data(hw, skb, false);
if (ieee80211_is_data(fc)) { if (ieee80211_is_data(fc)) {
rtlpriv->cfg->ops->led_control(hw, LED_CTL_RX); rtlpriv->cfg->ops->led_control(hw, LED_CTL_RX);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment