summaryrefslogtreecommitdiffstats
path: root/drivers/leds/dell-led.c
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2017-02-17 08:57:47 +0100
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2017-03-06 22:06:54 +0100
commit6dbea8535d179af4db6a42383b6c29ecb489c32a (patch)
tree420351a78f808af1d15e23055199449c10375b2f /drivers/leds/dell-led.c
parentleds/trigger/cpu: Add LED trigger for all CPUs aggregated (diff)
downloadlinux-6dbea8535d179af4db6a42383b6c29ecb489c32a.tar.xz
linux-6dbea8535d179af4db6a42383b6c29ecb489c32a.zip
dell-led: remove GUID check from dell_micmute_led_set()
As dell_micmute_led_set() no longer uses the dell_wmi_perform_query() method, which was removed in commit 0c41a08e131d ("dell-led: use dell_smbios_send_request() for performing SMBIOS calls"), the DELL_APP_GUID check is redundant and thus can be safely removed. Signed-off-by: Michał Kępień <kernel@kempniu.pl> Tested-by: Alex Hung <alex.hung@canonical.com> Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers/leds/dell-led.c')
-rw-r--r--drivers/leds/dell-led.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/leds/dell-led.c b/drivers/leds/dell-led.c
index b3d6e9c15cf9..e8e8f67224c1 100644
--- a/drivers/leds/dell-led.c
+++ b/drivers/leds/dell-led.c
@@ -51,9 +51,6 @@ static int dell_micmute_led_set(int state)
struct calling_interface_buffer *buffer;
struct calling_interface_token *token;
- if (!wmi_has_guid(DELL_APP_GUID))
- return -ENODEV;
-
if (state == 0)
token = dell_smbios_find_token(GLOBAL_MIC_MUTE_DISABLE);
else if (state == 1)