Commit f0b5c6d3 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix bracketing in visor_periodic_work_stop()

The last if statement in this function is missing brackets on the else
clause. Add them.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 622c9d97
...@@ -207,9 +207,10 @@ BOOL visor_periodic_work_stop(struct periodic_work *pw) ...@@ -207,9 +207,10 @@ BOOL visor_periodic_work_stop(struct periodic_work *pw)
*/ */
SLEEPJIFFIES(10); SLEEPJIFFIES(10);
write_lock(&pw->lock); write_lock(&pw->lock);
} else } else {
pw->want_to_stop = FALSE; pw->want_to_stop = FALSE;
} }
}
write_unlock(&pw->lock); write_unlock(&pw->lock);
return stopped_something; return stopped_something;
} }
......
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