Skip to content

Commit

Permalink
iwlwifi: dvm: excessive if in rs_bt_update_lq()
Browse files Browse the repository at this point in the history
There is no need to check 'priv->bt_ant_couple_ok' twice in
rs_bt_update_lq(). The second check is always true. Thus, the
expression can be simplified.

Signed-off-by: Denis Efremov <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
  • Loading branch information
evdenis authored and lucacoelho committed Nov 20, 2019
1 parent e8503ae commit e7babbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/intel/iwlwifi/dvm/rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ static void rs_bt_update_lq(struct iwl_priv *priv, struct iwl_rxon_context *ctx,
* Is there a need to switch between
* full concurrency and 3-wire?
*/
if (priv->bt_ci_compliance && priv->bt_ant_couple_ok)
if (priv->bt_ci_compliance)
full_concurrent = true;
else
full_concurrent = false;
Expand Down

0 comments on commit e7babbe

Please sign in to comment.