Skip to content

Commit

Permalink
dell-led: remove GUID check from dell_micmute_led_set()
Browse files Browse the repository at this point in the history
As dell_micmute_led_set() no longer uses the dell_wmi_perform_query()
method, which was removed in commit 0c41a08 ("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>
  • Loading branch information
Michał Kępień authored and Jacek Anaszewski committed Mar 6, 2017
1 parent 0b88b71 commit 6dbea85
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/leds/dell-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6dbea85

Please sign in to comment.