Directly return value and remove unneeded variables. Signed-off-by: Umang Parmar <umangjparmar@xxxxxxxxx> --- .../staging/rtlwifi/phydm/phydm_hwconfig.c | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c b/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c index bf0af36ceb9e..81957f1a4c65 100644 --- a/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c +++ b/drivers/staging/rtlwifi/phydm/phydm_hwconfig.c @@ -493,8 +493,7 @@ static u8 odm_sq_process_patch_rt_cid_819x_lenovo(struct phy_dm_struct *dm, u8 is_cck_rate, u8 pwdb_all, u8 path, u8 RSSI) { - u8 sq = 0; - return sq; + return 0; } static u8 odm_evm_db_to_percentage(s8 value) @@ -1881,35 +1880,25 @@ void phydm_rx_phy_status_new_type(struct phy_dm_struct *phydm, u8 *phy_status, u32 query_phydm_trx_capability(struct phy_dm_struct *dm) { - u32 value32 = 0xFFFFFFFF; - - return value32; + return 0xFFFFFFFF; } u32 query_phydm_stbc_capability(struct phy_dm_struct *dm) { - u32 value32 = 0xFFFFFFFF; - - return value32; + return 0xFFFFFFFF; } u32 query_phydm_ldpc_capability(struct phy_dm_struct *dm) { - u32 value32 = 0xFFFFFFFF; - - return value32; + return 0xFFFFFFFF; } u32 query_phydm_txbf_parameters(struct phy_dm_struct *dm) { - u32 value32 = 0xFFFFFFFF; - - return value32; + return 0xFFFFFFFF; } u32 query_phydm_txbf_capability(struct phy_dm_struct *dm) { - u32 value32 = 0xFFFFFFFF; - - return value32; + return 0xFFFFFFFF; } -- 2.18.0 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel