mac80211: Fix warnings due to -Wunused-but-set-variable
These warnings are exposed by gcc 4.6. net/mac80211/sta_info.c: In function 'sta_info_cleanup_expire_buffered': net/mac80211/sta_info.c:590:32: warning: variable 'sdata' set but not used net/mac80211/ibss.c: In function 'ieee80211_rx_mgmt_auth_ibss': net/mac80211/ibss.c:43:34: warning: variable 'status_code' set but not used net/mac80211/work.c: In function 'ieee80211_send_assoc': net/mac80211/work.c:203:9: warning: variable 'len' set but not used net/mac80211/tx.c: In function '__ieee80211_parse_tx_radiotap': net/mac80211/tx.c:1039:35: warning: variable 'sband' set but not used net/mac80211/mesh.c: In function 'ieee80211_mesh_rx_queued_mgmt': net/mac80211/mesh.c:616:28: warning: variable 'ifmsh' set but not used ... Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
334df73197
commit
0915cba394
@@ -633,7 +633,6 @@ static void hwmp_perr_frame_process(struct ieee80211_sub_if_data *sdata,
|
||||
struct mesh_path *mpath;
|
||||
u8 ttl;
|
||||
u8 *ta, *target_addr;
|
||||
u8 target_flags;
|
||||
u32 target_sn;
|
||||
u16 target_rcode;
|
||||
|
||||
@@ -644,7 +643,6 @@ static void hwmp_perr_frame_process(struct ieee80211_sub_if_data *sdata,
|
||||
return;
|
||||
}
|
||||
ttl--;
|
||||
target_flags = PERR_IE_TARGET_FLAGS(perr_elem);
|
||||
target_addr = PERR_IE_TARGET_ADDR(perr_elem);
|
||||
target_sn = PERR_IE_TARGET_SN(perr_elem);
|
||||
target_rcode = PERR_IE_TARGET_RCODE(perr_elem);
|
||||
@@ -675,12 +673,10 @@ static void hwmp_rann_frame_process(struct ieee80211_sub_if_data *sdata,
|
||||
{
|
||||
struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh;
|
||||
struct mesh_path *mpath;
|
||||
u8 *ta;
|
||||
u8 ttl, flags, hopcount;
|
||||
u8 *orig_addr;
|
||||
u32 orig_sn, metric;
|
||||
|
||||
ta = mgmt->sa;
|
||||
ttl = rann->rann_ttl;
|
||||
if (ttl <= 1) {
|
||||
ifmsh->mshstats.dropped_frames_ttl++;
|
||||
|
Reference in New Issue
Block a user