rfkill: Factor rfkill_global_states[].cur assignments
authorJoão Paulo Rechi Vita <jprvita@gmail.com>
Mon, 22 Feb 2016 16:36:36 +0000 (11:36 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 24 Feb 2016 08:13:11 +0000 (09:13 +0100)
commit9487bd6b96a98ee07661a7b5e6f6afce67e2860b
tree950592ee8bba089f5215e649f69109f26b0d4d46
parent4b636dc659ffbca8bc8069dcdf5ae5c2d088a163
rfkill: Factor rfkill_global_states[].cur assignments

Factor all assignments to rfkill_global_states[].cur into a single
function rfkill_update_global_state().

Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/rfkill/core.c