powerpc: Drop unused syscall_get_error()
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jul 2015 10:21:03 +0000 (20:21 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2015 01:56:12 +0000 (11:56 +1000)
commit2923e6d503465e97a378d37a588e4e6987009bc7
tree6803b2ba9362744c75b5b04224bfbc745c017825
parentd38374142b2560f233961ed3756416c68af6c6cb
powerpc: Drop unused syscall_get_error()

syscall_get_error() is unused, and never has been.

It's also probably wrong, as it negates r3 before returning it, but that
depends on what the caller is expecting.

It also doesn't deal with compat, and doesn't deal with TIF_NOERROR.

Although we could fix those, until it has a caller and it's clear what
semantics the caller wants it's just untested code. So drop it.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Kees Cook <keescook@chromium.org>
arch/powerpc/include/asm/syscall.h