]> git.baikalelectronics.ru Git - kernel.git/commit
nommu: fix compilation of nommu.c
authorGreg Ungerer <gerg@uclinux.org>
Mon, 4 Jun 2012 04:29:59 +0000 (14:29 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Jun 2012 21:17:31 +0000 (17:17 -0400)
commit1757f109fd55c67d1b32d270187cbc77885d2b41
tree3238627961c45144f3235fa39b2ac98561c61078
parent40647276c4ee4e953753fdbd89e18b8d38d97583
nommu: fix compilation of nommu.c

Compiling 3.5-rc1 for nommu targets gives:

  CC      mm/nommu.o
mm/nommu.c: In function ‘sys_mmap_pgoff’:
mm/nommu.c:1489:2: error: ‘ret’ undeclared (first use in this function)
mm/nommu.c:1489:2: note: each undeclared identifier is reported only once for each function it appears in

It is trivially fixed by replacing 'ret' with the local variable that is
already defined for the return value 'retval'.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/nommu.c