diff options
author | Sanjana Sanikommu <sanjana99reddy99@gmail.com> | 2019-03-31 15:52:11 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-01 19:31:11 +0200 |
commit | d34709c64de1ecfd9ae2a204f3d8f7d021ba462a (patch) | |
tree | a7c3994bfc9148cb69835c0239fbbfda1294f7fb /drivers | |
parent | 557e36194ed4052a8767e356784027b545c8a311 (diff) | |
download | linux-d34709c64de1ecfd9ae2a204f3d8f7d021ba462a.tar.bz2 |
staging: rtl8188eu: Modify return statement.
Challenge suggested by coccinelle.
Remove return variable and directly return the value
Issue found using ret.cocci
Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c index 4480deef95a1..f404370d6631 100644 --- a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c @@ -1180,12 +1180,8 @@ unsigned int update_supported_rate(unsigned char *ptn, unsigned int ptn_sz) unsigned int update_MSC_rate(struct ieee80211_ht_cap *pHT_caps) { - unsigned int mask = 0; - - mask = (pHT_caps->mcs.rx_mask[0] << 12) | + return (pHT_caps->mcs.rx_mask[0] << 12) | (pHT_caps->mcs.rx_mask[1] << 20); - - return mask; } int support_short_GI(struct adapter *padapter, struct ieee80211_ht_cap *pHT_caps) |