aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zfs/zfs_main.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-08 22:08:55 +0100
committerBrian Behlendorf <[email protected]>2022-04-01 17:55:19 -0700
commit84a3eab6aa44dedaec6d3f5e6da9ccb4b9942907 (patch)
tree252c9bc5aa74d7cb2a3352bbccff0724a38ef63f /cmd/zfs/zfs_main.c
parent5b0e75caef66cda8e5c14dcd9f7ab689a6d605ad (diff)
zfs: simplify usage_prop_cb values
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13259
Diffstat (limited to 'cmd/zfs/zfs_main.c')
-rw-r--r--cmd/zfs/zfs_main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c
index ae8e5043d..097b270b2 100644
--- a/cmd/zfs/zfs_main.c
+++ b/cmd/zfs/zfs_main.c
@@ -486,10 +486,7 @@ usage_prop_cb(int prop, void *cb)
else
(void) fprintf(fp, " NO ");
- if (zfs_prop_values(prop) == NULL)
- (void) fprintf(fp, "-\n");
- else
- (void) fprintf(fp, "%s\n", zfs_prop_values(prop));
+ (void) fprintf(fp, "%s\n", zfs_prop_values(prop) ?: "-");
return (ZPROP_CONT);
}