master - coverity: remove dead code in lv_info_with_seg_status (continued)
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c8890e3ac1adcb9129c30d3fe9a1a11ceedebce4 Commit: c8890e3ac1adcb9129c30d3fe9a1a11ceedebce4 Parent: 193f9b26a0a87b2f5ce9a308ea0d957fadfe4aeb Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Nov 26 11:58:25 2014 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Nov 26 11:58:25 2014 +0100
coverity: remove dead code in lv_info_with_seg_status (continued)
--- lib/activate/activate.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
lib/activate/activate.c +3 -5
@@ -722,11 +722,9 @@ int lv_info_with_seg_status(struct cmd_context *cmd, const struct logical_volumeif (!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