[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170421144645.45189-4-andriy.shevchenko@linux.intel.com>
Date: Fri, 21 Apr 2017 17:46:41 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...db.de>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
alsa-devel@...a-project.org, linux-input@...r.kernel.org,
kvm@...r.kernel.org, devel@...uxdriverproject.org,
linux-efi@...r.kernel.org, linux-acpi@...r.kernel.org
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Kirti Wankhede <kwankhede@...dia.com>,
Alex Williamson <alex.williamson@...hat.com>
Subject: [PATCH v1 4/8] vfio-mdev: Use recently introduced uuid_le_cmp_p{p}()
Recently introduced helpers take pointers to uuid_{be|le} instead of
reference.
Using them makes code less ugly.
Cc: Kirti Wankhede <kwankhede@...dia.com>
Cc: Alex Williamson <alex.williamson@...hat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/vfio/mdev/mdev_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c
index 126991046eb7..82de886855d8 100644
--- a/drivers/vfio/mdev/mdev_core.c
+++ b/drivers/vfio/mdev/mdev_core.c
@@ -75,7 +75,7 @@ static int _find_mdev_device(struct device *dev, void *data)
mdev = to_mdev_device(dev);
- if (uuid_le_cmp(mdev->uuid, *(uuid_le *)data) == 0)
+ if (uuid_le_cmp_p(data, mdev->uuid) == 0)
return 1;
return 0;
--
2.11.0
Powered by blists - more mailing lists