]> git.baikalelectronics.ru Git - 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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 1 Mar 2022 09:08:45 +0000 (10:08 +0100)
commit0b28d5f405ee8cc1e8c6b6eba0b3a1ad07c24343
treef2e3c440921ab82da102627a037d6363dd1dab66
parent4382077a14a0f6b46ba3b34c318130a8b2563238
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: 5d40f8759179 ("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