OSDN Git Service

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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 1 Mar 2022 09:08:45 +0000 (10:08 +0100)
commit5d8965704fe5662e2e4a7e4424a2cbe53e182670
treef2e3c440921ab82da102627a037d6363dd1dab66
parent1e6ae0e46e32749b130f1823da30cea9aa2a59a0
MIPS: ralink: mt7621: use bitwise NOT instead of logical

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>
arch/mips/ralink/mt7621.c