Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325325
b: refs/heads/master
c: 40fe4f8
h: refs/heads/master
i:
  325323: 48042ea
v: v3
  • Loading branch information
Ben Hutchings authored and Greg Kroah-Hartman committed Sep 17, 2012
1 parent 24d1483 commit 7ad022b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c4a9f6e0ac55db62816bfa5e584ed807540a5ee
refs/heads/master: 40fe4f89671fb3c7ded94190fb267402a38b0261
13 changes: 4 additions & 9 deletions trunk/drivers/staging/speakup/speakup_soft.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static int softsynth_is_alive(struct spk_synth *synth);
static unsigned char get_index(void);

static struct miscdevice synth_device;
static int initialized;
static int init_pos;
static int misc_registered;

static struct var_t vars[] = {
Expand Down Expand Up @@ -194,7 +194,7 @@ static int softsynth_close(struct inode *inode, struct file *fp)
unsigned long flags;
spk_lock(flags);
synth_soft.alive = 0;
initialized = 0;
init_pos = 0;
spk_unlock(flags);
/* Make sure we let applications go before leaving */
speakup_start_ttys();
Expand Down Expand Up @@ -239,13 +239,8 @@ static ssize_t softsynth_read(struct file *fp, char *buf, size_t count,
ch = '\x18';
} else if (synth_buffer_empty()) {
break;
} else if (!initialized) {
if (*init) {
ch = *init;
init++;
} else {
initialized = 1;
}
} else if (init[init_pos]) {
ch = init[init_pos++];
} else {
ch = synth_buffer_getc();
}
Expand Down

0 comments on commit 7ad022b

Please sign in to comment.