mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [STYLE 3/5]staging:speakup:synth.c Space preferred around
@ 2016-11-12 18:04 Walt Feasel
  0 siblings, 0 replies; only message in thread
From: Walt Feasel @ 2016-11-12 18:04 UTC (permalink / raw)
  To: speakup
  Cc: w.d.hubbs, chris, kirk, samuel.thibault, gregkh, devel,
	linux-kernel, Walt Feasel

Made suggested modifications from checkpatch in reference
to CHECK: spaces preferred around that '/,+,-'

Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
---
 drivers/staging/speakup/synth.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c
index a53bdce..aac3f3b 100644
--- a/drivers/staging/speakup/synth.c
+++ b/drivers/staging/speakup/synth.c
@@ -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 };
-- 
2.1.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-12 18:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-12 18:04 [PATCH] [STYLE 3/5]staging:speakup:synth.c Space preferred around Walt Feasel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®