Commit 7e5302e7 authored by Linus Torvalds's avatar Linus Torvalds

sparse: clean up warning in swapfile.c

parent 95acaaba
......@@ -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;
......
Markdown is supported
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