rfkill: simplify rfkill_set_hw_state() slightly
authorJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 08:38:25 +0000 (09:38 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 Dec 2016 15:04:35 +0000 (16:04 +0100)
commit74204f8fa117e7d0fa1d1a7a57c3c97df83ad418
tree2580bf12b385ad02bef1e270fa2a748cda23386a
parent8fa3b6f9392bf6d90cb7b908e07bd90166639f0a
rfkill: simplify rfkill_set_hw_state() slightly

Simplify the two conditions gating the schedule_work() into
a single one and get rid of the additional exit point from
the function in doing so.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/core.c