Skip to contentSkip to conversation

staging: rtl8192e: remove return statement from void function

PATCH New Michael Straube 1 participant 1 message Jan 5, 2024 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8192e: remove return statement from void function

Remove return statement from the void function _rtl92e_if_check_reset(). Found by checkpatch.

WARNING: void function return statements are not generally useful

---
 drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +0 -1
index 5107d06a9fd0..6450f86c563e 100644
@@ -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,
Signature · 1 line
2.43.0