summaryrefslogtreecommitdiffstats
path: root/net/mac80211/ibss.c
diff options
context:
space:
mode:
authorLuis Henriques2013-08-15 00:10:06 +0200
committerJohannes Berg2013-08-15 18:17:05 +0200
commitdee08ab83d0378d922b67e7cf10bbec3e4ea343b (patch)
tree4f5786e70c1c89f63d2269ad19c94725ce03f896 /net/mac80211/ibss.c
parentmac80211: ibss - do not scan if not needed when creating an IBSS (diff)
downloadkernel-qcow2-linux-dee08ab83d0378d922b67e7cf10bbec3e4ea343b.tar.gz
kernel-qcow2-linux-dee08ab83d0378d922b67e7cf10bbec3e4ea343b.tar.xz
kernel-qcow2-linux-dee08ab83d0378d922b67e7cf10bbec3e4ea343b.zip
net: rfkill: Do not ignore errors from regulator_enable()
Function regulator_enable() may return an error that has to be checked. This patch changes function rfkill_regulator_set_block() so that it checks for the return code. Also, rfkill_data->reg_enabled is set to 'true' only if there is no error. This fixes the following compilation warning: net/rfkill/rfkill-regulator.c:43:20: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Luis Henriques <luis.henriques@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ibss.c')
0 files changed, 0 insertions, 0 deletions