staging: rtlwifi: phydm: phydm_rainfo.c: Compress two lines into one line
Challenge suggested by coccinelle. Compresses two lines into one line and remove unnecessary variable. Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a161c66faf
commit
22228e6a6e
@ -926,8 +926,6 @@ void odm_refresh_basic_rate_mask(void *dm_void) {}
|
||||
|
||||
u8 phydm_rate_order_compute(void *dm_void, u8 rate_idx)
|
||||
{
|
||||
u8 rate_order = 0;
|
||||
|
||||
if (rate_idx >= ODM_RATEVHTSS4MCS0) {
|
||||
rate_idx -= ODM_RATEVHTSS4MCS0;
|
||||
/**/
|
||||
@ -950,9 +948,8 @@ u8 phydm_rate_order_compute(void *dm_void, u8 rate_idx)
|
||||
rate_idx -= ODM_RATEMCS8;
|
||||
/**/
|
||||
}
|
||||
rate_order = rate_idx;
|
||||
|
||||
return rate_order;
|
||||
return rate_idx;
|
||||
}
|
||||
|
||||
static void phydm_ra_common_info_update(void *dm_void)
|
||||
|
Loading…
Reference in New Issue
Block a user