mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ALSA: es1688: Remove almost always NULL parameter
snd_es1688_pcm() takes a pointer to a pointer of a PCM where if this parameter is provided the newly allocated PCM is stored. This PCM is also available from the pcm field of the snd_es1688 struct that got passed to the same function. This patch updates all callers which passed a pointer to use that field instead and then removes the parameter from the function. This makes the code a bit shorter and cleaner. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
7f60541883
commit
4b8ab88518
4 changed files with 6 additions and 12 deletions
|
|
@ -115,8 +115,7 @@ int snd_es1688_create(struct snd_card *card,
|
|||
int mpu_irq,
|
||||
int dma8,
|
||||
unsigned short hardware);
|
||||
int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device,
|
||||
struct snd_pcm **rpcm);
|
||||
int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device);
|
||||
int snd_es1688_mixer(struct snd_card *card, struct snd_es1688 *chip);
|
||||
int snd_es1688_reset(struct snd_es1688 *chip);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue