mirror of
https://github.com/proski/madwifi
synced 2024-11-22 06:21:47 +03:00
Fix certain NULL dereference in disabled XR code
Make it even more clear that the code is disabled. Found by coccinelle. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4155 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
ccf1970ea8
commit
43b7f2ddee
@ -6207,7 +6207,7 @@ ath_node_move_data(const struct ieee80211_node *ni)
|
|||||||
/* NB: last descriptor */
|
/* NB: last descriptor */
|
||||||
ds = prev->bf_desc;
|
ds = prev->bf_desc;
|
||||||
#endif
|
#endif
|
||||||
ts = &bf->bf_dsstatus.ds_txstat;
|
ts = &prev->bf_dsstatus.ds_txstat;
|
||||||
status = ath_hal_txprocdesc(
|
status = ath_hal_txprocdesc(
|
||||||
ah, ds, ts
|
ah, ds, ts
|
||||||
);
|
);
|
||||||
@ -6402,7 +6402,7 @@ ath_node_move_data(const struct ieee80211_node *ni)
|
|||||||
DPRINTF(sc, ATH_DEBUG_XMIT_PROC,
|
DPRINTF(sc, ATH_DEBUG_XMIT_PROC,
|
||||||
"moved %d buffers from XR to NORMAL\n"m count);
|
"moved %d buffers from XR to NORMAL\n"m count);
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* NOT_YET */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user