summaryrefslogtreecommitdiff
path: root/drivers/staging/speakup/speakup_soft.c
diff options
context:
space:
mode:
authorDomagoj Trsan <domagoj.trsan@gmail.com>2014-09-09 20:04:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-11 14:54:51 -0700
commit8e69a8110686572a4b88d006faa8c3c759c4c261 (patch)
tree38b28da55772c820099717b615509a77f0f0a158 /drivers/staging/speakup/speakup_soft.c
parente48735236b8487f9e8f25fae8622645aaa640261 (diff)
staging: speakup: fix missing blank lines after declarations
Signed-off-by: Domagoj Trsan <domagoj.trsan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/speakup_soft.c')
-rw-r--r--drivers/staging/speakup/speakup_soft.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/speakup/speakup_soft.c b/drivers/staging/speakup/speakup_soft.c
index 9ed726509261..e6e93fbd183a 100644
--- a/drivers/staging/speakup/speakup_soft.c
+++ b/drivers/staging/speakup/speakup_soft.c
@@ -192,6 +192,7 @@ static int softsynth_open(struct inode *inode, struct file *fp)
static int softsynth_close(struct inode *inode, struct file *fp)
{
unsigned long flags;
+
spin_lock_irqsave(&speakup_info.spinlock, flags);
synth_soft.alive = 0;
init_pos = 0;
@@ -283,6 +284,7 @@ static unsigned int softsynth_poll(struct file *fp,
{
unsigned long flags;
int ret = 0;
+
poll_wait(fp, &speakup_event, wait);
spin_lock_irqsave(&speakup_info.spinlock, flags);
@@ -295,6 +297,7 @@ static unsigned int softsynth_poll(struct file *fp,
static unsigned char get_index(void)
{
int rv;
+
rv = last_index;
last_index = 0;
return rv;