staging: speakup: use true/false instead of 1/0
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 14 May 2018 20:57:25 +0000 (22:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 May 2018 07:31:38 +0000 (09:31 +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 c0bcba9..1371ced 100644 (file)
@@ -80,7 +80,7 @@ void synth_buffer_add(u16 ch)
        /* We have written something to the speech synthesis, so we are not
         * paused any more.
         */
-       spk_paused = 0;
+       spk_paused = false;
 }
 
 u16 synth_buffer_getc(void)
index 84dff6e..869f40e 100644 (file)
@@ -1786,7 +1786,7 @@ static void speakup_con_update(struct vc_data *vc)
        speakup_date(vc);
        if (vc->vc_mode == KD_GRAPHICS && !spk_paused && spk_str_pause[0]) {
                synth_printf("%s", spk_str_pause);
-               spk_paused = 1;
+               spk_paused = true;
        }
        spin_unlock_irqrestore(&speakup_info.spinlock, flags);
 }