1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

dmstats: fix <backtrace> in _display_info_cols()

Remove a false <backtrace> in _display_info_cols(): it is not an
error if there are no regions to display.

Fixes commit e6724f03.
This commit is contained in:
Bryn M. Reeves 2016-07-05 18:42:29 +01:00
parent 0f64f2d5fc
commit e9c6fd3cff

View File

@ -884,9 +884,9 @@ static int _display_info_cols(struct dm_task *dmt, struct dm_info *info)
if (!dm_stats_list(obj.stats, _program_id))
goto_out;
/* No regions to report */
/* No regions to report is not an error */
if (!dm_stats_get_nr_regions(obj.stats))
goto_out;
goto out;
}
/* group report with no groups? */