提交 8ef9dad3 编写于 作者: T Tomas Winkler 提交者: John W. Linville

mac80211: remove shadowed variables in ieee80211_master_start_xmit

This patch removes doubly defined variables in ieee80211_master_start_xmit
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 74af0250
...@@ -1255,8 +1255,7 @@ static int ieee80211_skb_resize(struct ieee80211_local *local, ...@@ -1255,8 +1255,7 @@ static int ieee80211_skb_resize(struct ieee80211_local *local,
return 0; return 0;
} }
int ieee80211_master_start_xmit(struct sk_buff *skb, int ieee80211_master_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct net_device *dev)
{ {
struct ieee80211_master_priv *mpriv = netdev_priv(dev); struct ieee80211_master_priv *mpriv = netdev_priv(dev);
struct ieee80211_local *local = mpriv->local; struct ieee80211_local *local = mpriv->local;
...@@ -1308,8 +1307,6 @@ int ieee80211_master_start_xmit(struct sk_buff *skb, ...@@ -1308,8 +1307,6 @@ int ieee80211_master_start_xmit(struct sk_buff *skb,
} }
} else if (unlikely(osdata->vif.type == NL80211_IFTYPE_MONITOR)) { } else if (unlikely(osdata->vif.type == NL80211_IFTYPE_MONITOR)) {
struct ieee80211_sub_if_data *sdata; struct ieee80211_sub_if_data *sdata;
struct ieee80211_local *local = osdata->local;
struct ieee80211_hdr *hdr;
int hdrlen; int hdrlen;
u16 len_rthdr; u16 len_rthdr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册