Skip to content

Commit

Permalink
staging: speakup: thread.c style fixes
Browse files Browse the repository at this point in the history
fix issues reported by checkpatch.pl

Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
William Hubbs authored and Greg Kroah-Hartman committed Oct 19, 2010
1 parent 1e56026 commit 7025005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/speakup/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ int speakup_thread(void *data)
mutex_lock(&spk_mutex);
while (1) {
DEFINE_WAIT(wait);
while(1) {
while (1) {
spk_lock(flags);
our_sound = unprocessed_sound;
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() ||
our_sound.active ||
(synth && synth->catch_up && synth->alive &&
Expand All @@ -42,9 +43,8 @@ int speakup_thread(void *data)
if (kthread_should_stop())
break;

if (our_sound.active) {
if (our_sound.active)
kd_mksound(our_sound.freq, our_sound.jiffies);
}
if (synth && synth->catch_up && synth->alive) {
/* It is up to the callee to take the lock, so that it
* can sleep whenever it likes */
Expand Down

0 comments on commit 7025005

Please sign in to comment.