提交 7281b164 编写于 作者: D Dan Carpenter 提交者: Emmanuel Grumbach

iwlwifi: mvm: rs: fix a warning message

WARN_ON_ONCE() doesn't take a message, it only takes a condition.  I
have changed this to WARN(1, ...).
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
上级 20f4d39a
...@@ -1827,7 +1827,7 @@ static int rs_switch_to_column(struct iwl_mvm *mvm, ...@@ -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->type = lq_sta->is_vht ? LQ_VHT_MIMO2 : LQ_HT_MIMO2;
rate_mask = lq_sta->active_mimo2_rate; rate_mask = lq_sta->active_mimo2_rate;
} else { } else {
WARN_ON_ONCE("Bad column mode"); WARN_ONCE(1, "Bad column mode");
} }
if (column->mode != RS_LEGACY) { if (column->mode != RS_LEGACY) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册