staging: speakup: Add a pair of braces
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.
Signed-off-by Maya Nakamura <[email protected]>
--- drivers/staging/speakup/spk_ttyio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/spk_ttyio.c +2 -2
@@ -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
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.
Signed-off-by Maya Nakamura <[email protected]>
Acked-by Samuel Thibault <[email protected]>
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@@ -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 -+-