Skip to contentSkip to conversation

staging: speakup: Add a pair of braces

PATCH In review Maya Nakamura 2 participants 2 messages Oct 18, 2018 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: speakup: Add a pair of braces

Add a pair of braces to make all arms of the if statement consistent. Issue found by checkpatch.pl.

---
 drivers/staging/speakup/spk_ttyio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/spk_ttyio.c +2 -2
index eac63aab8162..979e3ae249c1 100644
@@ -227,9 +227,9 @@ static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch)
 {
 	int ret;
 
-	if (ch < 0x80)
+	if (ch < 0x80) {
 		ret = spk_ttyio_out(in_synth, ch);
-	else if (ch < 0x800) {
+	} else if (ch < 0x800) {
 		ret  = spk_ttyio_out(in_synth, 0xc0 | (ch >> 6));
 		ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f));
 	} else {
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw

Maya Nakamura, le mer. 17 oct. 2018 18:16:00 -0700, a ecrit:

Quoted 4 lines

Add a pair of braces to make all arms of the if statement consistent. Issue found by checkpatch.pl.

Quoted 23 lines
---
 drivers/staging/speakup/spk_ttyio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/spk_ttyio.c +2 -2
index eac63aab8162..979e3ae249c1 100644
@@ -227,9 +227,9 @@ static int spk_ttyio_out_unicode(struct spk_synth *in_synth, u16 ch)
 {
 	int ret;
 
-	if (ch < 0x80)
+	if (ch < 0x80) {
 		ret = spk_ttyio_out(in_synth, ch);
-	else if (ch < 0x800) {
+	} else if (ch < 0x800) {
 		ret  = spk_ttyio_out(in_synth, 0xc0 | (ch >> 6));
 		ret &= spk_ttyio_out(in_synth, 0x80 | (ch & 0x3f));
 	} else {
Signature · 1 line
2.17.1
Signature · 3 lines
Samuel
 je n ai cité aucun message et sur irc on parle effectivement comme des
 enfants de 5 ans na!
Quoted 1 line

3. Quand tu cite un message, répond _après_ ce que tu cites !

-+- Yota in : Guide du Neuneu d'Usenet - A un Yota près c'était bon -+-