From fbae47076e9307154fac38d57b260e8dd7c79b1d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 13 May 2018 11:38:30 +0200 Subject: [PATCH] staging: speakup: Fix coding style Signed-off-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman --- drivers/staging/speakup/buffers.c | 3 ++- drivers/staging/speakup/main.c | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/speakup/buffers.c b/drivers/staging/speakup/buffers.c index 5fa7c2f7ce5d..c0bcba9ddf03 100644 --- a/drivers/staging/speakup/buffers.c +++ b/drivers/staging/speakup/buffers.c @@ -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; } diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index b7fae36d41d9..84dff6ef46d1 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -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; }