erofs-utils: lib: use another way to check power-of-2
authorGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 10 Sep 2024 07:52:56 +0000 (15:52 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Tue, 10 Sep 2024 08:14:37 +0000 (16:14 +0800)
commit85ea711aafd3d1cab58ac757106536d742ec37f9
tree4a15643976412428542c206d87494b445aa1961a
parentc551dab0b57757607dd27a1ed764e6d3f9e9fdbd
erofs-utils: lib: use another way to check power-of-2

Otherwise, Coverity will complain with "Operands don't affect result
(CONSTANT_EXPRESSION_RESULT)", which I don't think is an issue.

Coverity-id: 508261
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240910075256.3423180-1-hsiangkao@linux.alibaba.com
lib/kite_deflate.c