staging: rtl8192e: remove return from void function rtl92e_set_channel
authorMichael Straube <straube.linux@gmail.com>
Thu, 1 Feb 2024 08:18:23 +0000 (09:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 16:28:56 +0000 (17:28 +0100)
Remove return from the void function rtl92e_set_channel.
Found by checkpatch.

WARNING: void function return statements are not generally useful

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240201081824.6998-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c

index e1bd4d67e862b6056fe4e0dae2dde55d6e4b319d..18b948d4d86d399f973fb04b557c438ce99b24fe 100644 (file)
@@ -714,7 +714,6 @@ void 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;
 }
 
 static void _rtl92e_cck_tx_power_track_bw_switch_tssi(struct net_device *dev)