1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: ensure dm_stats_get_area_offset() returns a value

This commit is contained in:
Bryn M. Reeves 2015-08-17 13:56:44 +01:00
parent 623b46a17d
commit 427d0a5e92

View File

@ -1341,6 +1341,7 @@ uint64_t dm_stats_get_area_offset(const struct dm_stats *dms, uint64_t *offset,
if (!dms || !dms->regions) if (!dms || !dms->regions)
return_0; return_0;
*offset = dms->regions[region_id].step * area_id; *offset = dms->regions[region_id].step * area_id;
return 1;
} }
uint64_t dm_stats_get_current_area_start(const struct dm_stats *dms, uint64_t dm_stats_get_current_area_start(const struct dm_stats *dms,