From 9d8537ff21e09d6dc01834795406fcbe93e0e995 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 12 Dec 2012 12:13:38 +0100 Subject: lscpu: don't care about xasprintf() return code Signed-off-by: Karel Zak --- sys-utils/lscpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/lscpu.c') diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 5ff5aa79d..7cdc9f927 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -565,8 +565,8 @@ read_hypervisor(struct lscpu_desc *desc) str = strchr(buf, ':'); if (!str) continue; - if (xasprintf(&str, "%s", str + 1) == -1) - errx(EXIT_FAILURE, _("failed to allocate memory")); + xasprintf(&str, "%s", str + 1); + /* remove leading, trailing and repeating whitespace */ while (*str == ' ') str++; -- cgit v1.2.3-55-g7522