Skip to contentSkip to conversation

Staging: rtlwifi: Replace return type

PATCH New Madhumitha Prabakaran 1 participant 1 message Apr 19, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtlwifi: Replace return type

Replace return type and remove the respective assignment.

Issue found by Coccinelle.

---
 drivers/staging/rtlwifi/core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/rtlwifi/core.c +1 -3
index 2cce65368f92..1e4e858f7517 100644
@@ -377,9 +377,7 @@ static u16 _calculate_wol_pattern_crc(u8 *pattern, u16 len)
 	for (i = 0; i < len; i++)
 		crc = crc16_ccitt(pattern[i], crc);
 
-	crc = ~crc;
-
-	return crc;
+	return ~crc;
 }
 
 static void _rtl_add_wowlan_patterns(struct ieee80211_hw *hw,
Signature · 1 line
2.17.1