diff options
author | Santha Meena Ramamoorthy <santhameena13@gmail.com> | 2018-02-24 15:25:49 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-26 15:47:39 +0100 |
commit | 57352e12971e537ac641b0bf64709c958c6c7e78 (patch) | |
tree | 0de9a8175e485949d9f9f041a6861209b7deae51 | |
parent | abe9dbd85bbc9f0ab16b200ad4b58da86a827767 (diff) |
staging: speakup: add braces around else statement
Add braces {} around else statement to conform to the Linux kernel
coding style. Issue found using checkpatch.
Signed-off-by: Santha Meena Ramamoorthy <santhameena13@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/speakup/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c index cf1259059776..d7cdec3271be 100644 --- a/drivers/staging/speakup/main.c +++ b/drivers/staging/speakup/main.c @@ -449,8 +449,9 @@ static void speak_char(u16 ch) if (*cp == '^') { cp++; synth_printf(" %s%s ", spk_msg_get(MSG_CTRL), cp); - } else + } else { synth_printf(" %s ", cp); + } } } @@ -561,7 +562,7 @@ static u_long get_word(struct vc_data *vc) get_char(vc, (u_short *)&tmp_pos + 1, &temp) > SPACE) { tmp_pos += 2; tmpx++; - } else + } else { while (tmpx > 0) { ch = get_char(vc, (u_short *)tmp_pos - 1, &temp); if ((ch == SPACE || ch == 0 || @@ -571,6 +572,7 @@ static u_long get_word(struct vc_data *vc) tmp_pos -= 2; tmpx--; } + } attr_ch = get_char(vc, (u_short *)tmp_pos, &spk_attr); buf[cnt++] = attr_ch; while (tmpx < vc->vc_cols - 1) { |