staging: unisys: fix bracketing in visor_periodic_work_stop()
authorBenjamin Romer <benjamin.romer@unisys.com>
Tue, 4 Nov 2014 16:25:22 +0000 (11:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Nov 2014 19:50:49 +0000 (11:50 -0800)
The last if statement in this function is missing brackets on the else
clause. Add them.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorutil/periodic_work.c

index 73c31f78df9e27d3a827bd86bb3fc998b8d386d9..0908bf929401be23dd35e2845487b1e007889709 100644 (file)
@@ -207,8 +207,9 @@ BOOL visor_periodic_work_stop(struct periodic_work *pw)
                         */
                        SLEEPJIFFIES(10);
                        write_lock(&pw->lock);
-               } else
+               } else {
                        pw->want_to_stop = FALSE;
+               }
        }
        write_unlock(&pw->lock);
        return stopped_something;