iwlwifi: mvm: rs: fix a warning message
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 21 Nov 2015 10:33:38 +0000 (13:33 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 1 Dec 2015 19:17:56 +0000 (21:17 +0200)
WARN_ON_ONCE() doesn't take a message, it only takes a condition.  I
have changed this to WARN(1, ...).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rs.c

index 37c2db1c1b1c86654e1da43ed00a040734a088af..54789bd3b352f5543d6aecf5042fe14717f6596f 100644 (file)
@@ -1827,7 +1827,7 @@ static int rs_switch_to_column(struct iwl_mvm *mvm,
                rate->type = lq_sta->is_vht ? LQ_VHT_MIMO2 : LQ_HT_MIMO2;
                rate_mask = lq_sta->active_mimo2_rate;
        } else {
-               WARN_ON_ONCE("Bad column mode");
+               WARN_ONCE(1, "Bad column mode");
        }
 
        if (column->mode != RS_LEGACY) {