staging: speakup: Add a pair of braces
authorMaya Nakamura <m.maya.nakamura@gmail.com>
Thu, 18 Oct 2018 01:16:00 +0000 (18:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Oct 2018 19:10:45 +0000 (21:10 +0200)
Add a pair of braces to make all arms of the if statement consistent.
Issue found by checkpatch.pl.

Signed-off-by: Maya Nakamura <m.maya.nakamura@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/spk_ttyio.c

index eac63aa..979e3ae 100644 (file)
@@ -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 {