* [PATCH] Staging: rtlwifi: Replace return type
@ 2019-04-19 21:32 Madhumitha Prabakaran
0 siblings, 0 replies; only message in thread
From: Madhumitha Prabakaran @ 2019-04-19 21:32 UTC (permalink / raw)
To: gregkh, devel, linux-kernel; +Cc: Madhumitha Prabakaran
Replace return type and remove the respective assignment.
Issue found by Coccinelle.
Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
---
drivers/staging/rtlwifi/core.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/rtlwifi/core.c b/drivers/staging/rtlwifi/core.c
index 2cce65368f92..1e4e858f7517 100644
--- a/drivers/staging/rtlwifi/core.c
+++ b/drivers/staging/rtlwifi/core.c
@@ -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,
--
2.17.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-04-19 21:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-19 21:32 [PATCH] Staging: rtlwifi: Replace return type Madhumitha Prabakaran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®