Commit 7025005f authored by William Hubbs's avatar William Hubbs Committed by Greg Kroah-Hartman

staging: speakup: thread.c style fixes

fix issues reported by checkpatch.pl
Signed-off-by: default avatarWilliam Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1e560261
...@@ -21,11 +21,12 @@ int speakup_thread(void *data) ...@@ -21,11 +21,12 @@ int speakup_thread(void *data)
mutex_lock(&spk_mutex); mutex_lock(&spk_mutex);
while (1) { while (1) {
DEFINE_WAIT(wait); DEFINE_WAIT(wait);
while(1) { while (1) {
spk_lock(flags); spk_lock(flags);
our_sound = unprocessed_sound; our_sound = unprocessed_sound;
unprocessed_sound.active = 0; unprocessed_sound.active = 0;
prepare_to_wait(&speakup_event, &wait, TASK_INTERRUPTIBLE); prepare_to_wait(&speakup_event, &wait,
TASK_INTERRUPTIBLE);
should_break = kthread_should_stop() || should_break = kthread_should_stop() ||
our_sound.active || our_sound.active ||
(synth && synth->catch_up && synth->alive && (synth && synth->catch_up && synth->alive &&
...@@ -42,9 +43,8 @@ int speakup_thread(void *data) ...@@ -42,9 +43,8 @@ int speakup_thread(void *data)
if (kthread_should_stop()) if (kthread_should_stop())
break; break;
if (our_sound.active) { if (our_sound.active)
kd_mksound(our_sound.freq, our_sound.jiffies); kd_mksound(our_sound.freq, our_sound.jiffies);
}
if (synth && synth->catch_up && synth->alive) { if (synth && synth->catch_up && synth->alive) {
/* It is up to the callee to take the lock, so that it /* It is up to the callee to take the lock, so that it
* can sleep whenever it likes */ * can sleep whenever it likes */
......
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