Skip to content

Commit

Permalink
Staging: rtlwifi: Replace return type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Madhumitha Prabakaran authored and Greg Kroah-Hartman committed Apr 20, 2019
1 parent 2fc489d commit f59232a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/rtlwifi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f59232a

Please sign in to comment.