]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mac80211: remove a bit of dead mesh code
authorJohannes Berg <johannes.berg@intel.com>
Sat, 15 Dec 2012 08:45:50 +0000 (09:45 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 3 Jan 2013 12:01:18 +0000 (13:01 +0100)
In a file that's only built when CONFIG_MAC80211_MESH
is defined, having an #ifdef on the same is entirely
pointless, so remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c

index 8a9d5d03bbc2a3febaf5b2264a226fb84d115e8d..c0008d5dff0a104f509a4aead2b45cbcc2522253 100644 (file)
 int mesh_allocated;
 static struct kmem_cache *rm_cache;
 
-#ifdef CONFIG_MAC80211_MESH
 bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt)
 {
        return (mgmt->u.action.u.mesh_action.action_code ==
                        WLAN_MESH_ACTION_HWMP_PATH_SELECTION);
 }
-#else
-bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt)
-{ return false; }
-#endif
 
 void ieee80211s_init(void)
 {