From: Julia Lawall Date: Fri, 27 Nov 2015 16:10:58 +0000 (+0100) Subject: iwlwifi: dvm: fix compare_const_fl.cocci warnings X-Git-Tag: v4.5-rc1~128^2~20^2~6^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e70d41b59f30d2f26f505890d9a893e924b359bf;p=platform%2Fkernel%2Flinux-exynos.git iwlwifi: dvm: fix compare_const_fl.cocci warnings Move constants to the right of binary operators. Generated by: scripts/coccinelle/misc/compare_const_fl.cocci type=cleanup Signed-off-by: Fengguang Wu Signed-off-by: Julia Lawall Signed-off-by: Emmanuel Grumbach --- diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/calib.c b/drivers/net/wireless/intel/iwlwifi/dvm/calib.c index 9be6362..07a4c64 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/calib.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/calib.c @@ -311,7 +311,7 @@ static int iwl_sens_energy_cck(struct iwl_priv *priv, /* If previous beacon had too many false alarms, * give it some extra margin by reducing sensitivity again * (but don't go below measured energy of desired Rx) */ - if (IWL_FA_TOO_MANY == data->nrg_prev_state) { + if (data->nrg_prev_state == IWL_FA_TOO_MANY) { IWL_DEBUG_CALIB(priv, "... increasing margin\n"); if (data->nrg_th_cck > (max_nrg_cck + NRG_MARGIN)) data->nrg_th_cck -= NRG_MARGIN;