staging: rtl8192e: remove return statement from void function
authorMichael Straube <straube.linux@gmail.com>
Mon, 19 Jun 2023 15:09:52 +0000 (17:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jun 2023 14:14:32 +0000 (16:14 +0200)
Remove unnecessary return statement from the void function
rtl92e_config_mac(). Issue 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/20230619150953.22484-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c

index 4d7d5123c8313f3fa9ff9c793e16808254e26842..875540a2079d1518a00b79566496e5a60545356c 100644 (file)
@@ -268,7 +268,6 @@ void rtl92e_config_mac(struct net_device *dev)
                rtl92e_set_bb_reg(dev, pdwArray[i], pdwArray[i + 1],
                                  pdwArray[i + 2]);
        }
-       return;
 }
 
 static void _rtl92e_phy_config_bb(struct net_device *dev, u8 ConfigType)