]> 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>
Mon, 26 Nov 2012 12:41:08 +0000 (13:41 +0100)
commit5005310e9498711e74066a61adb588f2e5a886da
tree14803fdd9a0f63c8e74352a18e85d43070ac5c8f
parentf43bf8c03ba5235646dbeae7fca564f213fef345
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