Commit e5bf4843 authored by Hannes Eder's avatar Hannes Eder Committed by Takashi Iwai

sound/oss: fix sparse warning: symbol shadows an earlier one

Impact: Move variable to a more inner scope.

Fix this sparse warning:
  sound/oss/sequencer.c:235:29: warning: symbol 'err' shadows an earlier one
  sound/oss/sequencer.c:215:13: originally declared here
Signed-off-by: default avatarHannes Eder <hannes@hanneseder.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5d44aa4c
...@@ -212,7 +212,6 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun ...@@ -212,7 +212,6 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun
{ {
unsigned char event_rec[EV_SZ], ev_code; unsigned char event_rec[EV_SZ], ev_code;
int p = 0, c, ev_size; int p = 0, c, ev_size;
int err;
int mode = translate_mode(file); int mode = translate_mode(file);
dev = dev >> 4; dev = dev >> 4;
...@@ -285,7 +284,7 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun ...@@ -285,7 +284,7 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun
{ {
if (!midi_opened[event_rec[2]]) if (!midi_opened[event_rec[2]])
{ {
int mode; int err, mode;
int dev = event_rec[2]; int dev = event_rec[2];
if (dev >= max_mididev || midi_devs[dev]==NULL) if (dev >= max_mididev || midi_devs[dev]==NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment