提交 acdfe9b4 编写于 作者: Z Zhu Yi 提交者: John W. Linville

iwl3945: remove RFKILL_STATE_HARD_BLOCKED warnings

The patch fixes the compile warning of "enumeration value
‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch".
Signed-off-by: NZhu Yi <yi.zhu@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 5225640b
...@@ -8287,17 +8287,20 @@ static int iwl3945_rfkill_soft_rf_kill(void *data, enum rfkill_state state) ...@@ -8287,17 +8287,20 @@ static int iwl3945_rfkill_soft_rf_kill(void *data, enum rfkill_state state)
mutex_lock(&priv->mutex); mutex_lock(&priv->mutex);
switch (state) { switch (state) {
case RFKILL_STATE_ON: case RFKILL_STATE_UNBLOCKED:
iwl3945_radio_kill_sw(priv, 0); iwl3945_radio_kill_sw(priv, 0);
/* if HW rf-kill is set dont allow ON state */ /* if HW rf-kill is set dont allow ON state */
if (iwl3945_is_rfkill(priv)) if (iwl3945_is_rfkill(priv))
err = -EBUSY; err = -EBUSY;
break; break;
case RFKILL_STATE_OFF: case RFKILL_STATE_SOFT_BLOCKED:
iwl3945_radio_kill_sw(priv, 1); iwl3945_radio_kill_sw(priv, 1);
if (!iwl3945_is_rfkill(priv)) if (!iwl3945_is_rfkill(priv))
err = -EBUSY; err = -EBUSY;
break; break;
default:
IWL_WARNING("we recieved unexpected RFKILL state %d\n", state);
break;
} }
mutex_unlock(&priv->mutex); mutex_unlock(&priv->mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册