aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMadhumitha Prabakaran <madhumithabiw@gmail.com>2019-04-19 16:32:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-20 23:04:49 +0200
commitf59232a1da5979df7b37983f044c4b7101ef25f4 (patch)
treedd2faf5fea14a678344e7b708a33162f3e0e6f13 /drivers
parentStaging: rtl8723bs: core: Replace return types (diff)
downloadlinux-dev-f59232a1da5979df7b37983f044c4b7101ef25f4.tar.xz
linux-dev-f59232a1da5979df7b37983f044c4b7101ef25f4.zip
Staging: rtlwifi: Replace return type
Replace return type and remove the respective assignment. Issue found by Coccinelle. Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/staging/rtlwifi/core.c4
1 files changed, 1 insertions, 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,