aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-21 20:18:32 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-21 20:18:32 -0700
commit7e5302e77c29b0dcf4d9188a1d4bf682d73de8b4 (patch)
tree7425255e4b5300548da1219314d3ba0747d079b2 /mm
parent95acaabaf0463874f4dd18983b6b04e2eb83699f (diff)
downloadhistory-7e5302e77c29b0dcf4d9188a1d4bf682d73de8b4.tar.gz
sparse: clean up warning in swapfile.c
Diffstat (limited to 'mm')
-rw-r--r--mm/swapfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 154d05795678d1..6422f1b8d810f4 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -652,7 +652,7 @@ static int try_to_unuse(unsigned int type)
* open() method called) - so swap entries may be invisible
* to swapoff for a while, then reappear - but that is rare.
*/
- while ((i = find_next_to_unuse(si, i))) {
+ while ((i = find_next_to_unuse(si, i)) != 0) {
if (signal_pending(current)) {
retval = -EINTR;
break;