staging: rtl8192e: remove return statement from void function
authorMichael Straube <straube.linux@gmail.com>
Fri, 5 Jan 2024 09:32:16 +0000 (10:32 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jan 2024 18:15:53 +0000 (10:15 -0800)
Remove return statement from the void function _rtl92e_if_check_reset().
Found by checkpatch.

WARNING: void function return statements are not generally useful

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20240105093216.13981-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c

index 6815d18a7919e4c8aae9c9ae9826621c75ef0401..7b5d954acf6da70bb3fb06cfe3d70faffb22a675 100644 (file)
@@ -909,7 +909,6 @@ static void _rtl92e_if_check_reset(struct net_device *dev)
                netdev_info(dev, "%s(): TxResetType is %d, RxResetType is %d\n",
                            __func__, TxResetType, RxResetType);
        }
-       return;
 }
 
 static void _rtl92e_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum,