diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 14:24:39 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-02 18:27:42 +0300 |
commit | db5abb3c499e553a8afedee1417d6a6308dda7bd (patch) | |
tree | 2a6eb4c020771ae768a7f6795855a968d83631e3 /include/sound/gus.h | |
parent | 1a2515ac94bbb1c409dea2e4a7b011592569b239 (diff) | |
download | linux-db5abb3c499e553a8afedee1417d6a6308dda7bd.tar.xz |
ALSA: gus: Remove always NULL parameters
snd_gf1_pcm_new() and snd_gf1_rawmidi_new() take a pointer to a pointer of a
PCM/MIDI where if this parameter is provided the newly allocated object is
stored. All callers pass NULL though, so remove the parameter. This makes
the code a bit cleaner and shorter.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/gus.h')
-rw-r--r-- | include/sound/gus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/gus.h b/include/sound/gus.h index 42905d811da7..06bbdc25917c 100644 --- a/include/sound/gus.h +++ b/include/sound/gus.h @@ -591,7 +591,7 @@ int snd_gf1_new_mixer(struct snd_gus_card * gus); /* gus_pcm.c */ -int snd_gf1_pcm_new(struct snd_gus_card * gus, int pcm_dev, int control_index, struct snd_pcm ** rpcm); +int snd_gf1_pcm_new(struct snd_gus_card *gus, int pcm_dev, int control_index); #ifdef CONFIG_SND_DEBUG extern void snd_gf1_print_voice_registers(struct snd_gus_card * gus); @@ -620,7 +620,7 @@ void snd_gus_irq_profile_init(struct snd_gus_card *gus); /* gus_uart.c */ -int snd_gf1_rawmidi_new(struct snd_gus_card * gus, int device, struct snd_rawmidi **rrawmidi); +int snd_gf1_rawmidi_new(struct snd_gus_card *gus, int device); /* gus_dram.c */ int snd_gus_dram_write(struct snd_gus_card *gus, char __user *ptr, |