crypto: mediatek - remove redundant bitwise-or

Bitwise-or'ing 0xffffffff with the u32 variable ctr is the same result
as assigning the value to ctr.  Remove the redundant bitwise-or and
just use an assignment.

Addresses-Coverity: ("Suspicious &= or |= constant expression")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Colin Ian King 2019-10-23 12:48:24 +01:00 коммит произвёл Herbert Xu
Родитель f398243e9f
Коммит a52485165d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -591,7 +591,7 @@ static int mtk_aes_ctr_transfer(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
start = ctr; start = ctr;
end = start + blocks - 1; end = start + blocks - 1;
if (end < start) { if (end < start) {
ctr |= 0xffffffff; ctr = 0xffffffff;
datalen = AES_BLOCK_SIZE * -start; datalen = AES_BLOCK_SIZE * -start;
fragmented = true; fragmented = true;
} }