Commit fbae4707 authored by Samuel Thibault's avatar Samuel Thibault Committed by Greg Kroah-Hartman

staging: speakup: Fix coding style

Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f7887f74
...@@ -78,7 +78,8 @@ void synth_buffer_add(u16 ch) ...@@ -78,7 +78,8 @@ void synth_buffer_add(u16 ch)
if (buff_in > buffer_end) if (buff_in > buffer_end)
buff_in = synth_buffer; buff_in = synth_buffer;
/* We have written something to the speech synthesis, so we are not /* We have written something to the speech synthesis, so we are not
* paused any more. */ * paused any more.
*/
spk_paused = 0; spk_paused = 0;
} }
......
...@@ -68,7 +68,7 @@ int spk_punc_level, spk_reading_punc; ...@@ -68,7 +68,7 @@ int spk_punc_level, spk_reading_punc;
char spk_str_caps_start[MAXVARLEN + 1] = "\0"; char spk_str_caps_start[MAXVARLEN + 1] = "\0";
char spk_str_caps_stop[MAXVARLEN + 1] = "\0"; char spk_str_caps_stop[MAXVARLEN + 1] = "\0";
char spk_str_pause[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[] = { const struct st_bits_data spk_punc_info[] = {
{"none", "", 0}, {"none", "", 0},
{"some", "/$%&@", SOME}, {"some", "/$%&@", SOME},
...@@ -1784,8 +1784,7 @@ static void speakup_con_update(struct vc_data *vc) ...@@ -1784,8 +1784,7 @@ static void speakup_con_update(struct vc_data *vc)
/* Speakup output, discard */ /* Speakup output, discard */
return; return;
speakup_date(vc); 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); synth_printf("%s", spk_str_pause);
spk_paused = 1; spk_paused = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment