提交 6f7c962c 编写于 作者: A Alan Cox 提交者: Jiri Kosina

rfkill: error cannot be set here so simplify

Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 db831018
...@@ -656,7 +656,7 @@ static ssize_t rfkill_soft_store(struct device *dev, ...@@ -656,7 +656,7 @@ static ssize_t rfkill_soft_store(struct device *dev,
rfkill_set_block(rfkill, state); rfkill_set_block(rfkill, state);
mutex_unlock(&rfkill_global_mutex); mutex_unlock(&rfkill_global_mutex);
return err ?: count; return count;
} }
static u8 user_state_from_blocked(unsigned long state) static u8 user_state_from_blocked(unsigned long state)
...@@ -701,7 +701,7 @@ static ssize_t rfkill_state_store(struct device *dev, ...@@ -701,7 +701,7 @@ static ssize_t rfkill_state_store(struct device *dev,
rfkill_set_block(rfkill, state == RFKILL_USER_STATE_SOFT_BLOCKED); rfkill_set_block(rfkill, state == RFKILL_USER_STATE_SOFT_BLOCKED);
mutex_unlock(&rfkill_global_mutex); mutex_unlock(&rfkill_global_mutex);
return err ?: count; return count;
} }
static ssize_t rfkill_claim_show(struct device *dev, static ssize_t rfkill_claim_show(struct device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册