[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191101060846.3yzkupv7dbkecey4@gondor.apana.org.au>
Date: Fri, 1 Nov 2019 14:08:46 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Colin King <colin.king@...onical.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Matthias Brugger <matthias.bgg@...il.com>,
Vic Wu <vic.wu@...iatek.com>,
Ryder Lee <ryder.lee@...iatek.com>,
linux-crypto@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: mediatek: remove redundant bitwise-or
On Wed, Oct 23, 2019 at 12:48:24PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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@...onical.com>
> ---
> drivers/crypto/mediatek/mtk-aes.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists