summaryrefslogtreecommitdiffstats
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-11-21 22:07:59 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-12-11 09:18:30 -0800
commit29d3939084583b26a5487be64b9523e61468f1be (patch)
tree9bcec237d277ed5a011fa5adb0c3d8e8bfef8045 /kernel/torture.c
parenta2f2577d96ad060b65eb909dd39b57d676754119 (diff)
downloadop-kernel-dev-29d3939084583b26a5487be64b9523e61468f1be.zip
op-kernel-dev-29d3939084583b26a5487be64b9523e61468f1be.tar.gz
torture: Save a line in stutter_wait(): while -> for
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r--kernel/torture.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/torture.c b/kernel/torture.c
index 572576a..37b9401 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -576,7 +576,7 @@ void stutter_wait(const char *title)
cond_resched_rcu_qs();
spt = READ_ONCE(stutter_pause_test);
- while (spt) {
+ for (; spt; spt = READ_ONCE(stutter_pause_test)) {
if (spt == 1) {
schedule_timeout_interruptible(1);
} else if (spt == 2) {
@@ -586,7 +586,6 @@ void stutter_wait(const char *title)
schedule_timeout_interruptible(round_jiffies_relative(HZ));
}
torture_shutdown_absorb(title);
- spt = READ_ONCE(stutter_pause_test);
}
}
EXPORT_SYMBOL_GPL(stutter_wait);
OpenPOWER on IntegriCloud