diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2014-11-26 11:58:25 +0100 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2014-11-26 11:58:25 +0100 |
commit | c8890e3ac1adcb9129c30d3fe9a1a11ceedebce4 (patch) | |
tree | cf67922af70c7caed44aa391072d92013f0e0824 | |
parent | 193f9b26a0a87b2f5ce9a308ea0d957fadfe4aeb (diff) | |
download | lvm2-c8890e3ac1adcb9129c30d3fe9a1a11ceedebce4.tar.gz |
coverity: remove dead code in lv_info_with_seg_status (continued)
-rw-r--r-- | lib/activate/activate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 258873bea..dd0a4f945 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -722,11 +722,9 @@ int lv_info_with_seg_status(struct cmd_context *cmd, const struct logical_volume if (!activation()) return 0; - if (lv == lv_seg->lv) { - r = _lv_info(cmd, lv, use_layer, lvinfo, lv_seg, lv_seg_status, - with_open_count, with_read_ahead); - return 0; - } + if (lv == lv_seg->lv) + return _lv_info(cmd, lv, use_layer, lvinfo, lv_seg, lv_seg_status, + with_open_count, with_read_ahead); /* * If the info is requested for an LV and segment |