diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-04 07:51:45 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-12 04:58:19 -0500 |
commit | 80d7d771ae839d6fc2286f443ad8445b6721a7f3 (patch) | |
tree | c0a77703b5cd7c4b535c879bae7e85ade181a615 /sound/core/rawmidi.c | |
parent | c4d1489390aa0be73104fc502a1e3107511c8926 (diff) |
ALSA: Drop unused name argument in snd_register_oss_device()
The last argument, name, of snd_oss_register_device() is nowhere
referred in the function in the current code. Let's drop it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r-- | sound/core/rawmidi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index f016be72b100..f6c12a2b019c 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c | |||
@@ -1574,7 +1574,7 @@ static int snd_rawmidi_dev_register(struct snd_device *device) | |||
1574 | if ((int)rmidi->device == midi_map[rmidi->card->number]) { | 1574 | if ((int)rmidi->device == midi_map[rmidi->card->number]) { |
1575 | if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_MIDI, | 1575 | if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_MIDI, |
1576 | rmidi->card, 0, &snd_rawmidi_f_ops, | 1576 | rmidi->card, 0, &snd_rawmidi_f_ops, |
1577 | rmidi, name) < 0) { | 1577 | rmidi) < 0) { |
1578 | snd_printk(KERN_ERR "unable to register OSS rawmidi device %i:%i\n", rmidi->card->number, 0); | 1578 | snd_printk(KERN_ERR "unable to register OSS rawmidi device %i:%i\n", rmidi->card->number, 0); |
1579 | } else { | 1579 | } else { |
1580 | rmidi->ossreg++; | 1580 | rmidi->ossreg++; |
@@ -1586,7 +1586,7 @@ static int snd_rawmidi_dev_register(struct snd_device *device) | |||
1586 | if ((int)rmidi->device == amidi_map[rmidi->card->number]) { | 1586 | if ((int)rmidi->device == amidi_map[rmidi->card->number]) { |
1587 | if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_MIDI, | 1587 | if (snd_register_oss_device(SNDRV_OSS_DEVICE_TYPE_MIDI, |
1588 | rmidi->card, 1, &snd_rawmidi_f_ops, | 1588 | rmidi->card, 1, &snd_rawmidi_f_ops, |
1589 | rmidi, name) < 0) { | 1589 | rmidi) < 0) { |
1590 | snd_printk(KERN_ERR "unable to register OSS rawmidi device %i:%i\n", rmidi->card->number, 1); | 1590 | snd_printk(KERN_ERR "unable to register OSS rawmidi device %i:%i\n", rmidi->card->number, 1); |
1591 | } else { | 1591 | } else { |
1592 | rmidi->ossreg++; | 1592 | rmidi->ossreg++; |