From: Benjamin Romer Date: Tue, 4 Nov 2014 16:25:22 +0000 (-0500) Subject: staging: unisys: fix bracketing in visor_periodic_work_stop() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=f0b5c6d3531725edbbdde3e2c2221f1a27f00bd7;p=deliverable%2Flinux.git 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: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorutil/periodic_work.c b/drivers/staging/unisys/visorutil/periodic_work.c index 73c31f78df9e..0908bf929401 100644 --- a/drivers/staging/unisys/visorutil/periodic_work.c +++ b/drivers/staging/unisys/visorutil/periodic_work.c @@ -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;