aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 06:24:39 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-02 10:27:42 -0500
commitdb5abb3c499e553a8afedee1417d6a6308dda7bd (patch)
tree2a6eb4c020771ae768a7f6795855a968d83631e3 /include/sound
parent1a2515ac94bbb1c409dea2e4a7b011592569b239 (diff)
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')
-rw-r--r--include/sound/gus.h4
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);
591 591
592/* gus_pcm.c */ 592/* gus_pcm.c */
593 593
594int snd_gf1_pcm_new(struct snd_gus_card * gus, int pcm_dev, int control_index, struct snd_pcm ** rpcm); 594int snd_gf1_pcm_new(struct snd_gus_card *gus, int pcm_dev, int control_index);
595 595
596#ifdef CONFIG_SND_DEBUG 596#ifdef CONFIG_SND_DEBUG
597extern void snd_gf1_print_voice_registers(struct snd_gus_card * gus); 597extern 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);
620 620
621/* gus_uart.c */ 621/* gus_uart.c */
622 622
623int snd_gf1_rawmidi_new(struct snd_gus_card * gus, int device, struct snd_rawmidi **rrawmidi); 623int snd_gf1_rawmidi_new(struct snd_gus_card *gus, int device);
624 624
625/* gus_dram.c */ 625/* gus_dram.c */
626int snd_gus_dram_write(struct snd_gus_card *gus, char __user *ptr, 626int snd_gus_dram_write(struct snd_gus_card *gus, char __user *ptr,