MIPS: ralink: mt7621: use bitwise NOT instead of logical
authorIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Tue, 1 Mar 2022 01:15:07 +0000 (17:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:12:52 +0000 (19:12 +0100)
commita3049666063424c16bfca3e374f18fa2d1ae1fd0
tree40ebf48066fc11a810bced71073e8400f766b96d
parent68c4fe2ef0bf5ac06e73f2b47579aef4dde5612e
MIPS: ralink: mt7621: use bitwise NOT instead of logical

[ Upstream commit 5d8965704fe5662e2e4a7e4424a2cbe53e182670 ]

It was the intention to reverse the bits, not make them all zero by
using logical NOT operator.

Fixes: cc19db8b312a ("MIPS: ralink: mt7621: do memory detection on KSEG1")
Suggested-by: Chuanhong Guo <gch981213@gmail.com>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Reviewed-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/ralink/mt7621.c