aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/gus/gusmax.c
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 /sound/isa/gus/gusmax.c
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 'sound/isa/gus/gusmax.c')
-rw-r--r--sound/isa/gus/gusmax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/gus/gusmax.c b/sound/isa/gus/gusmax.c
index 39df36ca3acb..b2b3734a8e72 100644
--- a/sound/isa/gus/gusmax.c
+++ b/sound/isa/gus/gusmax.c
@@ -322,14 +322,14 @@ static int snd_gusmax_probe(struct device *pdev, unsigned int dev)
322 goto _err; 322 goto _err;
323 323
324 if (pcm_channels[dev] > 0) { 324 if (pcm_channels[dev] > 0) {
325 if ((err = snd_gf1_pcm_new(gus, 1, 1, NULL)) < 0) 325 if ((err = snd_gf1_pcm_new(gus, 1, 1)) < 0)
326 goto _err; 326 goto _err;
327 } 327 }
328 err = snd_gusmax_mixer(wss); 328 err = snd_gusmax_mixer(wss);
329 if (err < 0) 329 if (err < 0)
330 goto _err; 330 goto _err;
331 331
332 err = snd_gf1_rawmidi_new(gus, 0, NULL); 332 err = snd_gf1_rawmidi_new(gus, 0);
333 if (err < 0) 333 if (err < 0)
334 goto _err; 334 goto _err;
335 335