]> sourceware.org Git - lvm2.git/commitdiff
cleanup: drop unused report parameter
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 23 Sep 2013 09:01:46 +0000 (11:01 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 23 Sep 2013 09:35:15 +0000 (11:35 +0200)
Do not pass unused dm_report pointer.

lib/report/report.c

index 95525d8d094ef075e1dbbc46cd4c9613db54c1f9..540181a9ebb3a7ed41d67b0ac0d279f4bfac312c 100644 (file)
@@ -1035,8 +1035,8 @@ static int _raidmaxrecoveryrate_disp(struct dm_report *rh __attribute__((unused)
                                      &first_seg(lv)->max_recovery_rate);
 }
 
-static int _dtpercent_disp(int metadata, struct dm_report *rh,
-                          struct dm_pool *mem,
+/* Called only with lv_is_thin_pool/volume */
+static int _dtpercent_disp(int metadata, struct dm_pool *mem,
                           struct dm_report_field *field,
                           const void *data, void *private)
 {
@@ -1091,7 +1091,7 @@ static int _datapercent_disp(struct dm_report *rh, struct dm_pool *mem,
                return _snpercent_disp(rh, mem, field, data, private);
 
        if (lv_is_thin_pool(lv) || lv_is_thin_volume(lv))
-               return _dtpercent_disp(0, rh, mem, field, data, private);
+               return _dtpercent_disp(0, mem, field, data, private);
 
        dm_report_field_set_value(field, "", NULL);
 
@@ -1105,7 +1105,7 @@ static int _metadatapercent_disp(struct dm_report *rh, struct dm_pool *mem,
        const struct logical_volume *lv = (const struct logical_volume *) data;
 
        if (lv_is_thin_pool(lv))
-               return _dtpercent_disp(1, rh, mem, field, data, private);
+               return _dtpercent_disp(1, mem, field, data, private);
 
        dm_report_field_set_value(field, "", NULL);
 
This page took 0.037905 seconds and 5 git commands to generate.