diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-01-02 06:24:37 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-02 10:27:03 -0500 |
commit | 4b8ab88518726197c8659bc9aca96c6af01dab57 (patch) | |
tree | dd248ea06b8d5c9102889768cffc448e2d2e25a0 /include/sound/es1688.h | |
parent | 7f605418837add961466dc66f7370332d44c1a92 (diff) |
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 <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/es1688.h')
-rw-r--r-- | include/sound/es1688.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/sound/es1688.h b/include/sound/es1688.h index 1d636a2d8896..b34f23a5bb74 100644 --- a/include/sound/es1688.h +++ b/include/sound/es1688.h | |||
@@ -115,8 +115,7 @@ int snd_es1688_create(struct snd_card *card, | |||
115 | int mpu_irq, | 115 | int mpu_irq, |
116 | int dma8, | 116 | int dma8, |
117 | unsigned short hardware); | 117 | unsigned short hardware); |
118 | int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device, | 118 | int snd_es1688_pcm(struct snd_card *card, struct snd_es1688 *chip, int device); |
119 | struct snd_pcm **rpcm); | ||
120 | int snd_es1688_mixer(struct snd_card *card, struct snd_es1688 *chip); | 119 | int snd_es1688_mixer(struct snd_card *card, struct snd_es1688 *chip); |
121 | int snd_es1688_reset(struct snd_es1688 *chip); | 120 | int snd_es1688_reset(struct snd_es1688 *chip); |
122 | 121 | ||