Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f59232a1 authored by Madhumitha Prabakaran's avatar Madhumitha Prabakaran Committed by Greg Kroah-Hartman
Browse files

Staging: rtlwifi: Replace return type



Replace return type and remove the respective assignment.

Issue found by Coccinelle.

Signed-off-by: default avatarMadhumitha Prabakaran <madhumithabiw@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2fc489d8
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -377,9 +377,7 @@ static u16 _calculate_wol_pattern_crc(u8 *pattern, u16 len)
	for (i = 0; i < len; i++)
	for (i = 0; i < len; i++)
		crc = crc16_ccitt(pattern[i], crc);
		crc = crc16_ccitt(pattern[i], crc);


	crc = ~crc;
	return ~crc;

	return crc;
}
}


static void _rtl_add_wowlan_patterns(struct ieee80211_hw *hw,
static void _rtl_add_wowlan_patterns(struct ieee80211_hw *hw,