MIPS: Return directly in 32_mmap2()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 18 Jan 2017 18:00:05 +0000 (19:00 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 25 Jan 2017 01:51:11 +0000 (02:51 +0100)
commitfcf4aec13b56edcfc837fa138d8b1d99b26e5ce4
treeaa5ecc52464f31f864991ef9c0dd4fe9a038bf33
parent42b76a1d6dfede2a412567d37bd0df0cfac99adf
MIPS: Return directly in 32_mmap2()

* Return a failure indication without storing it
  in an intermediate variable.

* Delete the local variable "error" 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/15071/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/linux32.c