1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-03 17:47:44 +03:00

cov: hide intentionaly ptr arithmetic report

Only single region count is ever replaced with on-stack uint64_t.

(cherry picked from commit a91ac41b93eff0f3ebd3af3319e8bbcb1fe8d00f)
This commit is contained in:
Zdenek Kabelac 2018-11-02 22:29:43 +01:00 committed by Marian Csontos
parent 93ac80037a
commit e4bb94a93e

View File

@ -5241,6 +5241,7 @@ static int _do_stats_create_regions(struct dm_stats *dms,
*/
this_start = (segments) ? segment_start : start;
this_len = (segments) ? segment_len : this_len;
/* coverity[ptr_arith] intentional */
if (!(r = dm_stats_create_region(dms, &region_ids[count],
this_start, this_len, step,
precise, bounds,