Skip to content

Commit

Permalink
rfkill: error cannot be set here so simplify
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Alan Cox authored and Jiri Kosina committed Oct 25, 2012
1 parent db83101 commit 6f7c962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/rfkill/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ static ssize_t rfkill_soft_store(struct device *dev,
rfkill_set_block(rfkill, state);
mutex_unlock(&rfkill_global_mutex);

return err ?: count;
return count;
}

static u8 user_state_from_blocked(unsigned long state)
Expand Down Expand Up @@ -701,7 +701,7 @@ static ssize_t rfkill_state_store(struct device *dev,
rfkill_set_block(rfkill, state == RFKILL_USER_STATE_SOFT_BLOCKED);
mutex_unlock(&rfkill_global_mutex);

return err ?: count;
return count;
}

static ssize_t rfkill_claim_show(struct device *dev,
Expand Down

0 comments on commit 6f7c962

Please sign in to comment.