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>
This commit is contained in:
Madhumitha Prabakaran 2019-04-19 16:32:56 -05:00 committed by Greg Kroah-Hartman
parent 2fc489d8ac
commit f59232a1da
1 changed files with 1 additions and 3 deletions

View File

@ -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,