summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen-Yu Yeh <chenyou910331@gmail.com>2026-06-11 16:16:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-07 13:18:46 +0200
commit19e7c3b8ea4d16fc9fc67b079db1ccb8206255e2 (patch)
tree174b757675ff97d105856b6aebbf1cf2d2b7c79c
parent5b45c750b04f83d2d3a02cdb9a1494c93a326df2 (diff)
staging: rtl8723bs: remove unused channel format/arg macros
CHAN_FMT and CHAN_ARG are defined but never used anywhere in the driver. Most of their content is commented-out dead code. Remove them. This also fixes a checkpatch error: ERROR: Macros with complex values should be enclosed in parentheses Signed-off-by: Chen-Yu Yeh <chenyou910331@gmail.com> Link: https://patch.msgid.link/20260611081644.1553264-1-chenyou910331@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/include/ieee80211.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl8723bs/include/ieee80211.h
index 72f89ec9e32f..9f421e4875b7 100644
--- a/drivers/staging/rtl8723bs/include/ieee80211.h
+++ b/drivers/staging/rtl8723bs/include/ieee80211.h
@@ -623,32 +623,6 @@ struct rtw_ieee80211_channel {
/* int orig_mpwr; */
};
-#define CHAN_FMT \
- /*"band:%d, "*/ \
- /*"center_freq:%u, "*/ \
- "hw_value:%u, " \
- "flags:0x%08x" \
- /*"max_antenna_gain:%d\n"*/ \
- /*"max_power:%d\n"*/ \
- /*"max_reg_power:%d\n"*/ \
- /*"beacon_found:%u\n"*/ \
- /*"orig_flags:0x%08x\n"*/ \
- /*"orig_mag:%d\n"*/ \
- /*"orig_mpwr:%d\n"*/
-
-#define CHAN_ARG(channel) \
- /*(channel)->band*/ \
- /*, (channel)->center_freq*/ \
- (channel)->hw_value \
- , (channel)->flags \
- /*, (channel)->max_antenna_gain*/ \
- /*, (channel)->max_power*/ \
- /*, (channel)->max_reg_power*/ \
- /*, (channel)->beacon_found*/ \
- /*, (channel)->orig_flags*/ \
- /*, (channel)->orig_mag*/ \
- /*, (channel)->orig_mpwr*/ \
-
/* Parsed Information Elements */
struct rtw_ieee802_11_elems {
u8 *ssid;