summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5530.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 12:24:42 +0100
committerTakashi Iwai <tiwai@suse.de>2015-01-02 16:28:35 +0100
commit92533f188862fbefe357ada4e4af67b8e730e680 (patch)
tree1c5196dd29ae73119c18d99a8e5d1870e3c24bcf /sound/pci/cs5530.c
parentALSA: sb8: Remove always NULL parameters (diff)
downloadlinux-92533f188862fbefe357ada4e4af67b8e730e680.tar.xz
linux-92533f188862fbefe357ada4e4af67b8e730e680.zip
ASoC: sb16: Simplify snd_sb16dsp_pcm()
All callers of snd_sb16dsp_pcm() always pass the pcm field of the first parameter as the last parameter. Simplify the function by moving this inside the function itself. This makes the code a bit shorter and cleaner. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs5530.c')
-rw-r--r--sound/pci/cs5530.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs5530.c b/sound/pci/cs5530.c
index b1025507a467..0a8cf94c4858 100644
--- a/sound/pci/cs5530.c
+++ b/sound/pci/cs5530.c
@@ -223,7 +223,7 @@ static int snd_cs5530_create(struct snd_card *card,
return err;
}
- err = snd_sb16dsp_pcm(chip->sb, 0, &chip->sb->pcm);
+ err = snd_sb16dsp_pcm(chip->sb, 0);
if (err < 0) {
dev_err(card->dev, "Could not create PCM\n");
snd_cs5530_free(chip);