diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-01-30 13:19:47 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-01-30 13:19:47 +0000 |
commit | c51b9fff19d4891addf22f35950eeae48be9cac8 (patch) | |
tree | a2bdcb2e7b6828e82fe894bb4a6a8b6125d0cebc /lib/display/display.c | |
parent | 962b2a559dde931e5e519706b755bf2764b8338a (diff) | |
download | lvm2-c51b9fff19d4891addf22f35950eeae48be9cac8.tar.gz lvm2-c51b9fff19d4891addf22f35950eeae48be9cac8.tar.xz lvm2-c51b9fff19d4891addf22f35950eeae48be9cac8.zip |
Use stack return macros throughout.
Diffstat (limited to 'lib/display/display.c')
-rw-r--r-- | lib/display/display.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/display/display.c b/lib/display/display.c index 673c71c6..a5263c74 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -360,10 +360,8 @@ int pvdisplay_short(const struct cmd_context *cmd __attribute((unused)), if (!pv) return 0; - if (!id_write_format(&pv->id, uuid, sizeof(uuid))) { - stack; - return 0; - } + if (!id_write_format(&pv->id, uuid, sizeof(uuid))) + return_0; log_print("PV Name %s ", pv_dev_name(pv)); /* FIXME pv->pv_number); */ @@ -407,10 +405,8 @@ int lvdisplay_full(struct cmd_context *cmd, struct lv_segment *snap_seg = NULL; float snap_percent; /* fused, fsize; */ - if (!id_write_format(&lv->lvid.id[1], uuid, sizeof(uuid))) { - stack; - return 0; - } + if (!id_write_format(&lv->lvid.id[1], uuid, sizeof(uuid))) + return_0; inkernel = lv_info(cmd, lv, &info, 1, 1) && info.exists; |