]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:58 +0000 (15:17 +0100)
commitcda083b0c3f2be56df327f88f389de22007332b6
treec4c77496ca451d8ac80f34be88d792e877cf50f6
parenteb44d2ba747383da698b5ac2297c46a7990c9947
MIPS: ralink: mt7621: use bitwise NOT instead of logical

BugLink: https://bugs.launchpad.net/bugs/1964361
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/mips/ralink/mt7621.c