mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 01:32:47 -04:00
staging: r8188eu: remove unused macros in sta_info.h
Some of the sta_* and STA_* macros are not used. Remove those unused macros. Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com> Link: https://lore.kernel.org/r/c2453078b2d46119d167f2d0e4690cc87fc4b77e.1644422181.git.abdun.nihaal@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
14b33d8c8a
commit
66c123d8b4
@@ -210,53 +210,24 @@ struct sta_info {
|
||||
+ sta->sta_stats.rx_ctrl_pkts \
|
||||
+ sta->sta_stats.rx_data_pkts)
|
||||
|
||||
#define sta_last_rx_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_mgnt_pkts \
|
||||
+ sta->sta_stats.last_rx_ctrl_pkts \
|
||||
+ sta->sta_stats.last_rx_data_pkts)
|
||||
|
||||
#define sta_rx_data_pkts(sta) \
|
||||
(sta->sta_stats.rx_data_pkts)
|
||||
|
||||
#define sta_last_rx_data_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_data_pkts)
|
||||
|
||||
#define sta_rx_mgnt_pkts(sta) \
|
||||
(sta->sta_stats.rx_mgnt_pkts)
|
||||
|
||||
#define sta_last_rx_mgnt_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_mgnt_pkts)
|
||||
|
||||
#define sta_rx_beacon_pkts(sta) \
|
||||
(sta->sta_stats.rx_beacon_pkts)
|
||||
|
||||
#define sta_last_rx_beacon_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_beacon_pkts)
|
||||
|
||||
#define sta_rx_probereq_pkts(sta) \
|
||||
(sta->sta_stats.rx_probereq_pkts)
|
||||
|
||||
#define sta_last_rx_probereq_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probereq_pkts)
|
||||
|
||||
#define sta_rx_probersp_pkts(sta) \
|
||||
(sta->sta_stats.rx_probersp_pkts)
|
||||
|
||||
#define sta_last_rx_probersp_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probersp_pkts)
|
||||
|
||||
#define sta_rx_probersp_bm_pkts(sta) \
|
||||
(sta->sta_stats.rx_probersp_bm_pkts)
|
||||
|
||||
#define sta_last_rx_probersp_bm_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probersp_bm_pkts)
|
||||
|
||||
#define sta_rx_probersp_uo_pkts(sta) \
|
||||
(sta->sta_stats.rx_probersp_uo_pkts)
|
||||
|
||||
#define sta_last_rx_probersp_uo_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probersp_uo_pkts)
|
||||
|
||||
#define sta_update_last_rx_pkts(sta) \
|
||||
do { \
|
||||
sta->sta_stats.last_rx_mgnt_pkts = sta->sta_stats.rx_mgnt_pkts; \
|
||||
@@ -269,23 +240,6 @@ do { \
|
||||
sta->sta_stats.last_rx_data_pkts = sta->sta_stats.rx_data_pkts; \
|
||||
} while (0)
|
||||
|
||||
#define STA_RX_PKTS_ARG(sta) \
|
||||
sta->sta_stats.rx_mgnt_pkts \
|
||||
, sta->sta_stats.rx_ctrl_pkts \
|
||||
, sta->sta_stats.rx_data_pkts
|
||||
|
||||
#define STA_LAST_RX_PKTS_ARG(sta) \
|
||||
sta->sta_stats.last_rx_mgnt_pkts \
|
||||
, sta->sta_stats.last_rx_ctrl_pkts \
|
||||
, sta->sta_stats.last_rx_data_pkts
|
||||
|
||||
#define STA_RX_PKTS_DIFF_ARG(sta) \
|
||||
sta->sta_stats.rx_mgnt_pkts - sta->sta_stats.last_rx_mgnt_pkts \
|
||||
, sta->sta_stats.rx_ctrl_pkts - sta->sta_stats.last_rx_ctrl_pkts \
|
||||
, sta->sta_stats.rx_data_pkts - sta->sta_stats.last_rx_data_pkts
|
||||
|
||||
#define STA_PKTS_FMT "(m:%llu, c:%llu, d:%llu)"
|
||||
|
||||
struct sta_priv {
|
||||
u8 *pallocated_stainfo_buf;
|
||||
u8 *pstainfo_buf;
|
||||
|
||||
Reference in New Issue
Block a user