diff options
author | Barnabás Pőcze <[email protected]> | 2021-09-04 17:56:07 +0000 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2021-09-14 12:26:02 +0200 |
commit | 1ce69d2b96203da5819b207dc03dba7adf92cb60 (patch) | |
tree | d52568f25ebc04bc04706ea99870c17d9274579a | |
parent | 7410b8e634ce202f3f6a092431926c213d6c1f29 (diff) |
platform/x86: wmi: remove variable
The `block` variable is assigned and only used once, the code
shorter and probably clearer without it; so remove it.
Signed-off-by: Barnabás Pőcze <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
-rw-r--r-- | drivers/platform/x86/wmi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 91350af097d6..163969a8beac 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -118,15 +118,12 @@ static bool find_guid(const char *guid_string, struct wmi_block **out) { guid_t guid_input; struct wmi_block *wblock; - struct guid_block *block; if (guid_parse(guid_string, &guid_input)) return false; list_for_each_entry(wblock, &wmi_block_list, list) { - block = &wblock->gblock; - - if (guid_equal(&block->guid, &guid_input)) { + if (guid_equal(&wblock->gblock.guid, &guid_input)) { if (out) *out = wblock; return true; |