diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 12:24:42 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-02 16:28:35 +0100 |
commit | 92533f188862fbefe357ada4e4af67b8e730e680 (patch) | |
tree | 1c5196dd29ae73119c18d99a8e5d1870e3c24bcf /sound/isa/als100.c | |
parent | 8c77629996cbabee1d5b6d9b0d1e97cbca197ba1 (diff) |
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/isa/als100.c')
-rw-r--r-- | sound/isa/als100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/isa/als100.c b/sound/isa/als100.c index 32d01525211d..bc9ea306ee02 100644 --- a/sound/isa/als100.c +++ b/sound/isa/als100.c @@ -233,7 +233,7 @@ static int snd_card_als100_probe(int dev, irq[dev], dma8[dev], dma16[dev]); } - if ((error = snd_sb16dsp_pcm(chip, 0, &chip->pcm)) < 0) { + if ((error = snd_sb16dsp_pcm(chip, 0)) < 0) { snd_card_free(card); return error; } |