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

cleanup: drop unneeded int test

Testing int  region_size > INT32_MAX is always false
so drop the test (Coverity).
This commit is contained in:
Zdenek Kabelac 2015-05-07 10:54:55 +02:00
parent 950a21d58a
commit 3c46428fcd

View File

@ -774,9 +774,6 @@ int get_default_region_size(struct cmd_context *cmd)
{
int region_size = _get_default_region_size(cmd);
if (region_size > INT32_MAX)
region_size = INT32_MAX;
if (region_size & (region_size - 1)) {
region_size = _round_down_pow2(region_size);
log_verbose("Reducing mirror region size to %u kiB (power of 2).",