We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 028e6e2 commit 6bf06f1Copy full SHA for 6bf06f1
drivers/platform/x86/wmi.c
@@ -1241,11 +1241,7 @@ static bool guid_already_parsed_for_legacy(struct acpi_device *device, const gui
1241
list_for_each_entry(wblock, &wmi_block_list, list) {
1242
/* skip warning and register if we know the driver will use struct wmi_driver */
1243
for (int i = 0; allow_duplicates[i] != NULL; i++) {
1244
- guid_t tmp;
1245
-
1246
- if (guid_parse(allow_duplicates[i], &tmp))
1247
- continue;
1248
- if (guid_equal(&tmp, guid))
+ if (guid_parse_and_compare(allow_duplicates[i], guid))
1249
return false;
1250
}
1251
if (guid_equal(&wblock->gblock.guid, guid)) {
0 commit comments