]> sourceware.org Git - lvm2.git/commitdiff
coverity: remove dead code in lv_info_with_seg_status (continued)
authorPeter Rajnoha <prajnoha@redhat.com>
Wed, 26 Nov 2014 10:58:25 +0000 (11:58 +0100)
committerPeter Rajnoha <prajnoha@redhat.com>
Wed, 26 Nov 2014 10:58:25 +0000 (11:58 +0100)
lib/activate/activate.c

index 258873bea012408b8aad3f58a76ffb940c464585..dd0a4f945b631ca5c77badfa9583cbdc23b5545b 100644 (file)
@@ -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
This page took 0.039043 seconds and 5 git commands to generate.