lsblk: don't care about xasprintf() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-12-12 12:09:44 +01:00
parent 60b17c6f0e
commit b5fd07bcdb

View file

@ -787,10 +787,9 @@ static void set_tt_data(struct blkdev_cxt *cxt, int col, int id, struct tt_line
break;
case COL_SIZE:
if (cxt->size) {
if (lsblk->bytes) {
if (xasprintf(&p, "%jd", cxt->size) < 0)
p = NULL;
} else
if (lsblk->bytes)
xasprintf(&p, "%jd", cxt->size);
else
p = size_to_human_string(SIZE_SUFFIX_1LETTER, cxt->size);
if (p)
tt_line_set_data(ln, col, p);