summaryrefslogtreecommitdiffstats
path: root/drivers/hv/channel_mgmt.c
diff options
context:
space:
mode:
authorK. Y. Srinivasan2015-12-15 01:01:44 +0100
committerGreg Kroah-Hartman2015-12-15 04:15:05 +0100
commit4ae9250893485f380275e7d5cb291df87c4d9710 (patch)
tree443df5329ad7c6f1a1d205c7c791eb2153de8780 /drivers/hv/channel_mgmt.c
parentDrivers: hv: vmbus: Use uuid_le type consistently (diff)
downloadkernel-qcow2-linux-4ae9250893485f380275e7d5cb291df87c4d9710.tar.gz
kernel-qcow2-linux-4ae9250893485f380275e7d5cb291df87c4d9710.tar.xz
kernel-qcow2-linux-4ae9250893485f380275e7d5cb291df87c4d9710.zip
Drivers: hv: vmbus: Use uuid_le_cmp() for comparing GUIDs
Use uuid_le_cmp() for comparing GUIDs. Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
-rw-r--r--drivers/hv/channel_mgmt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index 38470aa4387f..dc4fb0bccb8d 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -408,8 +408,7 @@ static void init_vp_index(struct vmbus_channel *channel, const uuid_le *type_gui
struct cpumask *alloced_mask;
for (i = IDE; i < MAX_PERF_CHN; i++) {
- if (!memcmp(type_guid->b, &hp_devs[i].guid,
- sizeof(uuid_le))) {
+ if (!uuid_le_cmp(*type_guid, hp_devs[i].guid)) {
perf_chn = true;
break;
}