mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-29 15:22:30 +03:00
coverity: move initilization of count variable
Make code more understandble for Coverity, so it sees connection between 'extents' and 'count' and in fact code is more readable.
This commit is contained in:
parent
0349b6d889
commit
5ff6260071
@ -4606,6 +4606,7 @@ static uint64_t *_stats_map_file_regions(struct dm_stats *dms, int fd,
|
|||||||
struct stat buf;
|
struct stat buf;
|
||||||
int update;
|
int update;
|
||||||
|
|
||||||
|
*count = 0;
|
||||||
update = _stats_group_id_present(dms, group_id);
|
update = _stats_group_id_present(dms, group_id);
|
||||||
|
|
||||||
#ifdef BTRFS_SUPER_MAGIC
|
#ifdef BTRFS_SUPER_MAGIC
|
||||||
@ -4771,7 +4772,7 @@ uint64_t *dm_stats_create_regions_from_fd(struct dm_stats *dms, int fd,
|
|||||||
struct dm_histogram *bounds,
|
struct dm_histogram *bounds,
|
||||||
const char *alias)
|
const char *alias)
|
||||||
{
|
{
|
||||||
uint64_t *regions, count = 0;
|
uint64_t *regions, count;
|
||||||
int regroup = 1;
|
int regroup = 1;
|
||||||
|
|
||||||
if (alias && !group) {
|
if (alias && !group) {
|
||||||
|
Loading…
Reference in New Issue
Block a user