1
0
Fork 0

Staging: speakup: Remove braces for single statement blocks

The linux kernel coding style discourages use of braces for single
statement blocks. This patch removes the unnecessary braces.

The warning was detected using checkpatch.pl. Coccinelle was used to
make the change.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Shraddha Barke 2015-09-05 18:58:27 +05:30 committed by Greg Kroah-Hartman
parent 7273773c2c
commit ca0b6fe173
1 changed files with 1 additions and 2 deletions

View File

@ -291,10 +291,9 @@ static void do_catch_up(struct spk_synth *synth)
static void synth_flush(struct spk_synth *synth)
{
if (in_escape) {
if (in_escape)
/* if in command output ']' so we don't get an error */
spk_serial_out(']');
}
in_escape = 0;
is_flushing = 1;
spk_serial_out(SYNTH_CLEAR);