diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-03-31 17:41:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-01 20:22:22 +0300 |
commit | 22228e6a6e46058af487b9a7998f2689731e0427 (patch) | |
tree | 53a30e969e63025e846384ca2fdefa35a4dea817 /drivers/staging/rtlwifi | |
parent | a161c66faf7a724883da4228c89b17627a710b03 (diff) | |
download | linux-22228e6a6e46058af487b9a7998f2689731e0427.tar.xz |
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>
Diffstat (limited to 'drivers/staging/rtlwifi')
-rw-r--r-- | drivers/staging/rtlwifi/phydm/phydm_rainfo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtlwifi/phydm/phydm_rainfo.c b/drivers/staging/rtlwifi/phydm/phydm_rainfo.c index ed740a93c8b6..0f24bb2a1129 100644 --- a/drivers/staging/rtlwifi/phydm/phydm_rainfo.c +++ b/drivers/staging/rtlwifi/phydm/phydm_rainfo.c @@ -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) |