]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/platform/x86/wmi.c
wmi: use memcmp instead of strncmp to compare GUIDs
[~shefty/rdma-dev.git] / drivers / platform / x86 / wmi.c
index 104b77c87ef5ae36e0c4502c6487e1fb3aac428e..aecd9a9b549f004d692976ce2a911644e2c56eb7 100644 (file)
@@ -755,7 +755,7 @@ static bool guid_already_parsed(const char *guid_string)
        struct wmi_block *wblock;
 
        list_for_each_entry(wblock, &wmi_block_list, list)
-               if (strncmp(wblock->gblock.guid, guid_string, 16) == 0)
+               if (memcmp(wblock->gblock.guid, guid_string, 16) == 0)
                        return true;
 
        return false;