]> 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)
commit4fd8954369177c68ea9c9490ba0b71fbe2397829
treef2e3c440921ab82da102627a037d6363dd1dab66
parent20b59d38d296bb3ae2b3028e69546df7e1435c33
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: 65fc04706911 ("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