diff options
Diffstat (limited to 'net/rfkill')
-rw-r--r-- | net/rfkill/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index 752b72360ebc..61c112c890a9 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c | |||
@@ -656,7 +656,7 @@ static ssize_t rfkill_soft_store(struct device *dev, | |||
656 | rfkill_set_block(rfkill, state); | 656 | rfkill_set_block(rfkill, state); |
657 | mutex_unlock(&rfkill_global_mutex); | 657 | mutex_unlock(&rfkill_global_mutex); |
658 | 658 | ||
659 | return err ?: count; | 659 | return count; |
660 | } | 660 | } |
661 | 661 | ||
662 | static u8 user_state_from_blocked(unsigned long state) | 662 | static u8 user_state_from_blocked(unsigned long state) |
@@ -701,7 +701,7 @@ static ssize_t rfkill_state_store(struct device *dev, | |||
701 | rfkill_set_block(rfkill, state == RFKILL_USER_STATE_SOFT_BLOCKED); | 701 | rfkill_set_block(rfkill, state == RFKILL_USER_STATE_SOFT_BLOCKED); |
702 | mutex_unlock(&rfkill_global_mutex); | 702 | mutex_unlock(&rfkill_global_mutex); |
703 | 703 | ||
704 | return err ?: count; | 704 | return count; |
705 | } | 705 | } |
706 | 706 | ||
707 | static ssize_t rfkill_claim_show(struct device *dev, | 707 | static ssize_t rfkill_claim_show(struct device *dev, |