]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: speakup: synth.c Spaces around operators
authorWalt Feasel <waltfeasel@gmail.com>
Sat, 19 Nov 2016 19:34:35 +0000 (14:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 10:05:30 +0000 (11:05 +0100)
Make suggested checkpatch modification for
CHECK: spaces preferred around that '|,+,-,/'

Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/synth.c

index 54b2f391862834c277123319943680c7b6d9cd68..17aa44003aa82f4d17d8164981dff88280bc9034 100644 (file)
@@ -303,11 +303,11 @@ void spk_get_index_count(int *linecount, int *sentcount)
                sentence_count = ind % 10;
 
                if ((ind / 10) <= synth->indexing.currindex)
-                       index_count = synth->indexing.currindex-(ind/10);
+                       index_count = synth->indexing.currindex - (ind / 10);
                else
                        index_count = synth->indexing.currindex
-                               -synth->indexing.lowindex
-                               + synth->indexing.highindex-(ind/10)+1;
+                               - synth->indexing.lowindex
+                               + synth->indexing.highindex - (ind / 10) + 1;
 
        }
        *sentcount = sentence_count;
@@ -476,10 +476,10 @@ void synth_remove(struct spk_synth *in_synth)
                        break;
        }
        for ( ; synths[i] != NULL; i++) /* compress table */
-               synths[i] = synths[i+1];
+               synths[i] = synths[i + 1];
        module_status = 0;
        mutex_unlock(&spk_mutex);
 }
 EXPORT_SYMBOL_GPL(synth_remove);
 
-short spk_punc_masks[] = { 0, SOME, MOST, PUNC, PUNC|B_SYM };
+short spk_punc_masks[] = { 0, SOME, MOST, PUNC, PUNC | B_SYM };