summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>2019-03-31 20:11:30 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-01 19:22:22 +0200
commit22228e6a6e46058af487b9a7998f2689731e0427 (patch)
tree53a30e969e63025e846384ca2fdefa35a4dea817
parenta161c66faf7a724883da4228c89b17627a710b03 (diff)
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>
-rw-r--r--drivers/staging/rtlwifi/phydm/phydm_rainfo.c5
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)