]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
mac80211: fix warning for un-used parameter
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 21 Aug 2010 14:23:29 +0000 (07:23 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Aug 2010 18:33:17 +0000 (14:33 -0400)
mesh_hdr only used when CONFIG_MAC80211_MESH is defined

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c

index d51ec74cfb622960b0d22c98914b4fd2823c4ef8..a6ac9fd248f2feeb1ffdab74510aaf09ffb98cba 100644 (file)
@@ -1701,7 +1701,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
        u16 ethertype, hdrlen,  meshhdrlen = 0;
        __le16 fc;
        struct ieee80211_hdr hdr;
-       struct ieee80211s_hdr mesh_hdr;
+       struct ieee80211s_hdr mesh_hdr __maybe_unused;
        const u8 *encaps_data;
        int encaps_len, skip_header_bytes;
        int nh_pos, h_pos;