MIPS: syscall: Return directly in mips_mmap()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 18 Jan 2017 18:30:47 +0000 (19:30 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 25 Jan 2017 01:51:11 +0000 (02:51 +0100)
commitc9d3fdf3372d06690fd5cbc1ac5beabe52927382
tree7512f0e37bf7eed648b5be9c67d22dd5b3209e37
parenta45526bb78529911eb6b2525347762e977fce125
MIPS: syscall: Return directly in mips_mmap()

* Return an error code without storing it in an intermediate variable.

* Delete the local variable "result" which became unnecessary with
  this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: linux-mips@linux-mips.org
Cc: LKML <linux-kernel@vger.kernel.org>
Cc: kernel-janitors@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15073/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/syscall.c