Skip to content

Commit

Permalink
mac80211: remove a bit of dead mesh code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Jan 3, 2013
1 parent 051007d commit 10ff57f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/mac80211/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,11 @@
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)
{
Expand Down

0 comments on commit 10ff57f

Please sign in to comment.