mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
557e36194e
commit
d34709c64d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue