aboutsummaryrefslogtreecommitdiffstats
path: root/sound/isa/msnd/msnd_pinnacle.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 12:24:40 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-02 16:28:04 +0100
commitf6be4e624aa26699a9a89bc24089e88a227141c1 (patch)
tree68b70e9e4e350453ddfa038e12bee19154cac110 /sound/isa/msnd/msnd_pinnacle.c
parentALSA: gus: Remove always NULL parameters (diff)
downloadlinux-dev-f6be4e624aa26699a9a89bc24089e88a227141c1.tar.xz
linux-dev-f6be4e624aa26699a9a89bc24089e88a227141c1.zip
ALSA: msnd: Remove always NULL parameter
snd_msnd_pcm() takes a pointer to a pointer of a PCM where if this parameter is provided the newly allocated PCM 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/msnd/msnd_pinnacle.c')
-rw-r--r--sound/isa/msnd/msnd_pinnacle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c
index 5016bf957f51..65b36825d194 100644
--- a/sound/isa/msnd/msnd_pinnacle.c
+++ b/sound/isa/msnd/msnd_pinnacle.c
@@ -582,7 +582,7 @@ static int snd_msnd_attach(struct snd_card *card)
if (err < 0)
goto err_release_region;
- err = snd_msnd_pcm(card, 0, NULL);
+ err = snd_msnd_pcm(card, 0);
if (err < 0) {
printk(KERN_ERR LOGNAME ": error creating new PCM device\n");
goto err_release_region;