From: Hans de Goede Date: Sun, 17 Nov 2013 13:00:20 +0000 (+0100) Subject: dell-laptop: Don't set sw_state from the query callback X-Git-Tag: v3.13-rc2~36^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33f9359abb9f6ded3e7b6dc98b1468c83404af49;p=pandora-kernel.git dell-laptop: Don't set sw_state from the query callback The query callback should only update the hw_state, see the comment in net/rfkill/core.c in rfkill_set_block, which is its only caller. rfkill_set_block will modify the sw_state directly after calling query so calling set_sw_state is an expensive NOP. Signed-off-by: Hans de Goede Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed