staging: rtl8192e: Remove unused return value of rtl92e_set_channel()
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sat, 18 Nov 2023 08:51:05 +0000 (09:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 12:46:18 +0000 (12:46 +0000)
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>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index 4d12d73850415b9f685f821e4d876b8233226ba3..e1bd4d67e862b6056fe4e0dae2dde55d6e4b319d 100644 (file)
@@ -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)
index 6c4c33ded6a94cc2e9ac1feb581ddc62b2143fe3..ff4b4004b0d0051b3fe6efaded18837ef9d7f76d 100644 (file)
@@ -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);
index a4afbf3e934d5ae6162dbfd4b66e3aa6711d78d6..9b0be6dff6279e9ce8a8b4b91ca87a3f36a9d7c9 100644 (file)
@@ -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];