staging: speakup: thread.c style fixes
authorWilliam Hubbs <w.d.hubbs@gmail.com>
Sat, 16 Oct 2010 03:13:38 +0000 (22:13 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Oct 2010 17:06:05 +0000 (10:06 -0700)
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>
drivers/staging/speakup/thread.c

index 84531e70daf0a373ee82201db19d0ad6f3f3c29e..103c5c81ee85a5c1640cfb3e95b673992653d3d0 100644 (file)
@@ -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 &&
@@ -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 */