diff options
-rw-r--r-- | sound/oss/sequencer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/sequencer.c b/sound/oss/sequencer.c index 5c215f787ca9..c79874696bec 100644 --- a/sound/oss/sequencer.c +++ b/sound/oss/sequencer.c | |||
@@ -212,7 +212,6 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun | |||
212 | { | 212 | { |
213 | unsigned char event_rec[EV_SZ], ev_code; | 213 | unsigned char event_rec[EV_SZ], ev_code; |
214 | int p = 0, c, ev_size; | 214 | int p = 0, c, ev_size; |
215 | int err; | ||
216 | int mode = translate_mode(file); | 215 | int mode = translate_mode(file); |
217 | 216 | ||
218 | dev = dev >> 4; | 217 | dev = dev >> 4; |
@@ -285,7 +284,7 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun | |||
285 | { | 284 | { |
286 | if (!midi_opened[event_rec[2]]) | 285 | if (!midi_opened[event_rec[2]]) |
287 | { | 286 | { |
288 | int mode; | 287 | int err, mode; |
289 | int dev = event_rec[2]; | 288 | int dev = event_rec[2]; |
290 | 289 | ||
291 | if (dev >= max_mididev || midi_devs[dev]==NULL) | 290 | if (dev >= max_mididev || midi_devs[dev]==NULL) |