mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 20:58:14 -04:00
staging: rtl8192e: Remove unused return value of rtl92e_set_channel()
Remove unused return value of rtl92e_set_channel(). Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/0c0e7c72a10731ae7ed49c8161136b0f0b63d7a0.1700296319.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
23c2c8cf4f
commit
0d1bf38752
@@ -671,16 +671,16 @@ static void _rtl92e_phy_switch_channel_work_item(struct net_device *dev)
|
||||
_rtl92e_phy_switch_channel(dev, priv->chan);
|
||||
}
|
||||
|
||||
u8 rtl92e_set_channel(struct net_device *dev, u8 channel)
|
||||
void rtl92e_set_channel(struct net_device *dev, u8 channel)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
|
||||
if (!priv->up) {
|
||||
netdev_err(dev, "%s(): Driver is not initialized\n", __func__);
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
if (priv->sw_chnl_in_progress)
|
||||
return false;
|
||||
return;
|
||||
|
||||
switch (priv->rtllib->mode) {
|
||||
case WIRELESS_MODE_B:
|
||||
@@ -688,7 +688,7 @@ u8 rtl92e_set_channel(struct net_device *dev, u8 channel)
|
||||
netdev_warn(dev,
|
||||
"Channel %d not available in 802.11b.\n",
|
||||
channel);
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case WIRELESS_MODE_G:
|
||||
@@ -697,7 +697,7 @@ u8 rtl92e_set_channel(struct net_device *dev, u8 channel)
|
||||
netdev_warn(dev,
|
||||
"Channel %d not available in 802.11g.\n",
|
||||
channel);
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -714,7 +714,7 @@ u8 rtl92e_set_channel(struct net_device *dev, u8 channel)
|
||||
if (priv->up)
|
||||
_rtl92e_phy_switch_channel_work_item(dev);
|
||||
priv->sw_chnl_in_progress = false;
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
static void _rtl92e_cck_tx_power_track_bw_switch_tssi(struct net_device *dev)
|
||||
|
||||
@@ -41,7 +41,7 @@ void rtl92e_get_tx_power(struct net_device *dev);
|
||||
void rtl92e_set_tx_power(struct net_device *dev, u8 channel);
|
||||
u8 rtl92e_config_rf_path(struct net_device *dev, enum rf90_radio_path eRFPath);
|
||||
|
||||
u8 rtl92e_set_channel(struct net_device *dev, u8 channel);
|
||||
void rtl92e_set_channel(struct net_device *dev, u8 channel);
|
||||
void rtl92e_set_bw_mode(struct net_device *dev,
|
||||
enum ht_channel_width bandwidth,
|
||||
enum ht_extchnl_offset Offset);
|
||||
|
||||
@@ -228,7 +228,7 @@ struct r8192_priv {
|
||||
struct rt_stats stats;
|
||||
struct iw_statistics wstats;
|
||||
|
||||
u8 (*rf_set_chan)(struct net_device *dev, u8 ch);
|
||||
void (*rf_set_chan)(struct net_device *dev, u8 ch);
|
||||
|
||||
struct rx_desc *rx_ring;
|
||||
struct sk_buff *rx_buf[MAX_RX_COUNT];
|
||||
|
||||
Reference in New Issue
Block a user