mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 16:17:41 -04:00
staging: rtl8192e: Remove unused variable dot11d_info->state
Remove unused variable dot11d_info->state. Remove unused enum dot11d_state as well. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/2f1d4851a7a370c5ef367568c2b098bb9fbf0ce7.1700431464.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8d0a43cb65
commit
49dd5a89cc
@@ -18,7 +18,6 @@ void dot11d_init(struct rtllib_device *ieee)
|
||||
{
|
||||
struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee);
|
||||
|
||||
dot11d_info->state = DOT11D_STATE_NONE;
|
||||
dot11d_info->country_len = 0;
|
||||
memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1);
|
||||
memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1);
|
||||
|
||||
@@ -16,12 +16,6 @@ struct chnl_txpow_triple {
|
||||
u8 max_tx_power;
|
||||
};
|
||||
|
||||
enum dot11d_state {
|
||||
DOT11D_STATE_NONE = 0,
|
||||
DOT11D_STATE_LEARNED,
|
||||
DOT11D_STATE_DONE,
|
||||
};
|
||||
|
||||
/**
|
||||
* struct rt_dot11d_info * @country_len: value greater than 0 if
|
||||
* @country_buffer contains valid country information element.
|
||||
@@ -40,8 +34,6 @@ struct rt_dot11d_info {
|
||||
|
||||
u8 channel_map[MAX_CHANNEL_NUMBER + 1];
|
||||
u8 max_tx_power_list[MAX_CHANNEL_NUMBER + 1];
|
||||
|
||||
enum dot11d_state state;
|
||||
};
|
||||
|
||||
#define GET_DOT11D_INFO(__ieee_dev) \
|
||||
|
||||
Reference in New Issue
Block a user