zfs: simplify usage_prop_cb values
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13259
This commit is contained in:
parent
5b0e75caef
commit
84a3eab6aa
|
@ -486,10 +486,7 @@ usage_prop_cb(int prop, void *cb)
|
||||||
else
|
else
|
||||||
(void) fprintf(fp, " NO ");
|
(void) fprintf(fp, " NO ");
|
||||||
|
|
||||||
if (zfs_prop_values(prop) == NULL)
|
(void) fprintf(fp, "%s\n", zfs_prop_values(prop) ?: "-");
|
||||||
(void) fprintf(fp, "-\n");
|
|
||||||
else
|
|
||||||
(void) fprintf(fp, "%s\n", zfs_prop_values(prop));
|
|
||||||
|
|
||||||
return (ZPROP_CONT);
|
return (ZPROP_CONT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue