Skip to content
Commit 72eb8c67 authored by Helge Deller's avatar Helge Deller Committed by Linus Torvalds
Browse files

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: default avatarHelge 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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e14c8bf8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment