]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: speakup: Fix coding style
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 13 May 2018 09:38:30 +0000 (11:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 11:34:33 +0000 (13:34 +0200)
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/buffers.c
drivers/staging/speakup/main.c

index 5fa7c2f7ce5d50d7e635b29f462d9d1b93f8ec60..c0bcba9ddf03533ac0366e76462f6d3a775ad80a 100644 (file)
@@ -78,7 +78,8 @@ void synth_buffer_add(u16 ch)
        if (buff_in > buffer_end)
                buff_in = synth_buffer;
        /* We have written something to the speech synthesis, so we are not
-        * paused any more. */
+        * paused any more.
+        */
        spk_paused = 0;
 }
 
index b7fae36d41d96343e2ea4e3950653cb250b0f683..84dff6ef46d1f0686f79425635d35afafd880943 100644 (file)
@@ -68,7 +68,7 @@ int spk_punc_level, spk_reading_punc;
 char spk_str_caps_start[MAXVARLEN + 1] = "\0";
 char spk_str_caps_stop[MAXVARLEN + 1] = "\0";
 char spk_str_pause[MAXVARLEN + 1] = "\0";
-bool spk_paused = 0;
+bool spk_paused;
 const struct st_bits_data spk_punc_info[] = {
        {"none", "", 0},
        {"some", "/$%&@", SOME},
@@ -1784,8 +1784,7 @@ static void speakup_con_update(struct vc_data *vc)
                /* Speakup output, discard */
                return;
        speakup_date(vc);
-       if (vc->vc_mode == KD_GRAPHICS && !spk_paused && spk_str_pause[0])
-       {
+       if (vc->vc_mode == KD_GRAPHICS && !spk_paused && spk_str_pause[0]) {
                synth_printf("%s", spk_str_pause);
                spk_paused = 1;
        }