]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Fix harmlessly missing else statement.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 6 Nov 2012 13:27:19 +0000 (14:27 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 6 Nov 2012 13:39:04 +0000 (14:39 +0100)
commit99a83df1179dfc4b5a3bb5bb3778ec6b6201f72b
treef9b7a152885d7e5a9a0bc48c1b3621343f04b6a3
parent70f77508fe4d52e2a3442ad87e5753b438db6e98
MIPS: Fix harmlessly missing else statement.

The actual bug is a missing else statement - but really this should be
expressed using a switch() statement.

Found by Al Viro who writes "the funny thing is, it *does* work only
because r2 is syscall number and syscall number around 512 => return
value being ENOSYS and not one of ERESTART...  so we really can't hit
the first if and emerge from it with ERESTART_RESTARTBLOCK.  still
wrong to write it that way..."

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/signal.c