MIPS: Sanitise Cavium switch cases in TLB handler synthesizers
authorMaciej W. Rozycki <macro@orcam.me.uk>
Fri, 4 Mar 2022 21:13:11 +0000 (21:13 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:38 +0000 (14:23 +0200)
commit804338913d27575141a7460e2d447bf49ba51cad
tree592c757a3a7ef9bcd78d31891926a44e7e4fd846
parentbe48780b4dec134230fb2c4e40cf3d90f2e7197a
MIPS: Sanitise Cavium switch cases in TLB handler synthesizers

[ Upstream commit 6ddcba9d480b6bcced4223a729794dfa6becb7eb ]

It makes no sense to fall through to `break'.  Therefore reorder the
switch statements so as to have the Cavium cases first, followed by the
default case, which improves readability and pacifies code analysis
tools.  No change in semantics, assembly produced is exactly the same.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Fixes: bc431d2153cc ("MIPS: Fix fall-through warnings for Clang")
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/mm/tlbex.c