mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 09:46:55 +00:00
btrfs-progs: switch ternary op to an if in cmd_subvol_show
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1c202eb06d
commit
49184a737b
@ -937,11 +937,13 @@ static int cmd_subvol_show(int argc, char **argv)
|
||||
goto out;
|
||||
}
|
||||
if (ret) {
|
||||
ret < 0 ?
|
||||
if (ret < 0) {
|
||||
error("Failed to get subvol info %s: %s\n",
|
||||
fullpath, strerror(-ret)):
|
||||
fullpath, strerror(-ret));
|
||||
} else {
|
||||
error("Failed to get subvol info %s: %d\n",
|
||||
fullpath, ret);
|
||||
fullpath, ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user