lsblk: don't care about xasprintf() return code
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
60b17c6f0e
commit
b5fd07bcdb
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue