rfkill: Lookup device in determine_state_file
authorBenjamin Berg <bberg@redhat.com>
Thu, 31 Aug 2017 15:34:08 +0000 (17:34 +0200)
committerBenjamin Berg <bberg@redhat.com>
Thu, 31 Aug 2017 15:38:32 +0000 (17:38 +0200)
commit8e707663135d28176163c9363c558ecac17c9ddb
treeaece3821da868b511ea10eea36115589de060717
parent6c1f72f626355615daee0e5a7ef7044759251a23
rfkill: Lookup device in determine_state_file

None of the callers actually need the device itself. So it makes sense
to do the lookup inside determine_state_file instead.
src/rfkill/rfkill.c