staging: unisys: remove MEMCMP_IO

This patch removes MEMCMP_IO from commontypes.h and fixes the one use of the
macro so it calls uuid_cmp_le() instead. The old code was comparing UUIDs
directly.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Benjamin Romer 2014-07-31 12:01:00 -04:00 committed by Greg Kroah-Hartman
parent 30de72dbb5
commit 1496125efd
2 changed files with 2 additions and 4 deletions

View File

@ -318,8 +318,8 @@ ULTRA_check_channel_client(void __iomem *pChannel,
{
if (uuid_le_cmp(expectedTypeGuid, NULL_UUID_LE) != 0)
/* caller wants us to verify type GUID */
if (MEMCMP_IO(&(((CHANNEL_HEADER __iomem *) (pChannel))->Type),
&expectedTypeGuid, sizeof(uuid_le)) != 0) {
if (uuid_le_cmp((((CHANNEL_HEADER __iomem *)(pChannel))->Type),
expectedTypeGuid) != 0) {
CHANNEL_GUID_MISMATCH(expectedTypeGuid, channelName,
"type", expectedTypeGuid,
((CHANNEL_HEADER __iomem *)

View File

@ -27,8 +27,6 @@
typedef u64 GUEST_PHYSICAL_ADDRESS;
#define MEMCMP_IO(m1, m2, len) memcmp((void __force *)m1, m2, len)
#define INLINE inline
#define OFFSETOF offsetof