projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c202eb
)
btrfs-progs: switch ternary op to an if in cmd_subvol_show
author
David Sterba
<dsterba@suse.com>
Fri, 19 Aug 2016 13:45:04 +0000
(15:45 +0200)
committer
David Sterba
<dsterba@suse.com>
Fri, 19 Aug 2016 13:45:04 +0000
(15:45 +0200)
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-subvolume.c
patch
|
blob
|
history
diff --git
a/cmds-subvolume.c
b/cmds-subvolume.c
index
be2d41e
..
e7ef67d
100644
(file)
--- a/
cmds-subvolume.c
+++ b/
cmds-subvolume.c
@@
-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;
}