aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/spk_ttyio.c
diff options
context:
space:
mode:
authorAlexandre Ghiti <alex@ghiti.fr>2017-06-09 14:14:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-13 14:59:21 +0200
commit650b175d635d25c771eab2e8ff8a11584bb3273a (patch)
treec910407a3f0ad3772b3f183b6fcce80b576d1d10 /drivers/staging/speakup/spk_ttyio.c
parentstaging: fsl-mc: add reference to mc-bus DT binding (diff)
downloadlinux-dev-650b175d635d25c771eab2e8ff8a11584bb3273a.tar.xz
linux-dev-650b175d635d25c771eab2e8ff8a11584bb3273a.zip
staging: speakup: Add missing blank line after declaration
This patch fixes checkpatch warnings about adding a blank line after variable declaration. Signed-off-by: Alexandre Ghiti <alex@ghiti.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/spk_ttyio.c')
-rw-r--r--drivers/staging/speakup/spk_ttyio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/speakup/spk_ttyio.c b/drivers/staging/speakup/spk_ttyio.c
index d55c056bbefe..4e346697e53d 100644
--- a/drivers/staging/speakup/spk_ttyio.c
+++ b/drivers/staging/speakup/spk_ttyio.c
@@ -50,6 +50,7 @@ static int spk_ttyio_receive_buf2(struct tty_struct *tty,
if (spk_ttyio_synth->read_buff_add) {
int i;
+
for (i = 0; i < count; i++)
spk_ttyio_synth->read_buff_add(cp[i]);
@@ -162,6 +163,7 @@ static int spk_ttyio_out(struct spk_synth *in_synth, const char ch)
{
if (in_synth->alive && speakup_tty && speakup_tty->ops->write) {
int ret = speakup_tty->ops->write(speakup_tty, &ch, 1);
+
if (ret == 0)
/* No room */
return 0;