Skip to content

Commit

Permalink
sound/oss: fix sparse warning: symbol shadows an earlier one
Browse files Browse the repository at this point in the history
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: Hannes Eder <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
hanneseder-net authored and tiwai committed Feb 26, 2009
1 parent 5d44aa4 commit e5bf484
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/oss/sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
int p = 0, c, ev_size;
int err;
int mode = translate_mode(file);

dev = dev >> 4;
Expand Down Expand Up @@ -285,7 +284,7 @@ int sequencer_write(int dev, struct file *file, const char __user *buf, int coun
{
if (!midi_opened[event_rec[2]])
{
int mode;
int err, mode;
int dev = event_rec[2];

if (dev >= max_mididev || midi_devs[dev]==NULL)
Expand Down

0 comments on commit e5bf484

Please sign in to comment.