]> git.baikalelectronics.ru Git - kernel.git/commit
unitialized return value in mm/mlock.c: __mlock_vma_pages_range()
authorHelge Deller <deller@gmx.de>
Sun, 16 Nov 2008 23:30:57 +0000 (00:30 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 16 Nov 2008 23:55:36 +0000 (15:55 -0800)
commit47dfeba32a017a94a38b2c3dbadd7a8e2cab8abd
tree813916b3188d29c1bd3efe604183b9f4e88aaf58
parent2ce45b9df90d06552fe726e001bbc7c37d9464d7
unitialized return value in mm/mlock.c: __mlock_vma_pages_range()

Fix an unitialized return value when compiling on parisc (with CONFIG_UNEVICTABLE_LRU=y):
mm/mlock.c: In function `__mlock_vma_pages_range':
mm/mlock.c:165: warning: `ret' might be used uninitialized in this function

Signed-off-by: Helge Deller <deller@gmx.de>
[ It isn't ever really used uninitialized, since no caller should ever
  call this function with an empty range.  But the compiler is correct
  that from a local analysis standpoint that is impossible to see, and
  fixing the warning is appropriate.  ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mlock.c