aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/sysinfo.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-11 14:00:57 +0200
committerChristoph Hellwig <hch@lst.de>2017-06-05 16:59:06 +0200
commite64e17a554746a7f794f3d480d06e4be530fc090 (patch)
tree689bb0223b009702ae5ee95ee138e18e7a9e0d34 /arch/s390/kernel/sysinfo.c
parentuuid: hoist uuid_is_null() helper from libnvdimm (diff)
downloadlinux-dev-e64e17a554746a7f794f3d480d06e4be530fc090.tar.xz
linux-dev-e64e17a554746a7f794f3d480d06e4be530fc090.zip
S390/sysinfo: use uuid_is_null instead of opencoding it
And switch to use uuid_t instead of the old uuid_be type. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to '')
-rw-r--r--arch/s390/kernel/sysinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/sysinfo.c b/arch/s390/kernel/sysinfo.c
index eefcb54872a5..fb869b103825 100644
--- a/arch/s390/kernel/sysinfo.c
+++ b/arch/s390/kernel/sysinfo.c
@@ -242,7 +242,7 @@ static void print_ext_name(struct seq_file *m, int lvl,
static void print_uuid(struct seq_file *m, int i, struct sysinfo_3_2_2 *info)
{
- if (!memcmp(&info->vm[i].uuid, &NULL_UUID_BE, sizeof(uuid_be)))
+ if (uuid_is_null(&info->vm[i].uuid))
return;
seq_printf(m, "VM%02d UUID: %pUb\n", i, &info->vm[i].uuid);
}