git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ALSA: wss: Remove (almost) always NULL parameters
[sfrench/cifs-2.6.git]
/
sound
/
isa
/
cs423x
/
cs4236_lib.c
diff --git
a/sound/isa/cs423x/cs4236_lib.c
b/sound/isa/cs423x/cs4236_lib.c
index c5adca300632b16c744e92a09580c02cd932472d..add7ffc072c5cfa021f800fa867593dd20ea813f 100644
(file)
--- a/
sound/isa/cs423x/cs4236_lib.c
+++ b/
sound/isa/cs423x/cs4236_lib.c
@@
-376,17
+376,14
@@
int snd_cs4236_create(struct snd_card *card,
return 0;
}
return 0;
}
-int snd_cs4236_pcm(struct snd_wss *chip, int device
, struct snd_pcm **rpcm
)
+int snd_cs4236_pcm(struct snd_wss *chip, int device)
{
{
- struct snd_pcm *pcm;
int err;
int err;
- err = snd_wss_pcm(chip, device
, &pcm
);
+ err = snd_wss_pcm(chip, device);
if (err < 0)
return err;
if (err < 0)
return err;
- pcm->info_flags &= ~SNDRV_PCM_INFO_JOINT_DUPLEX;
- if (rpcm)
- *rpcm = pcm;
+ chip->pcm->info_flags &= ~SNDRV_PCM_INFO_JOINT_DUPLEX;
return 0;
}
return 0;
}