mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ALSA: sb8: Remove always NULL parameters
snd_sb8dsp_pcm() and snd_sb8dsp_midi() take a pointer to a pointer of a PCM/MIDI where if this parameter is provided the newly allocated object is stored. All callers pass NULL though, so remove the parameter. This makes the code a bit cleaner and shorter. Signed-off-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
f6be4e624a
commit
8c77629996
5 changed files with 7 additions and 15 deletions
|
|
@ -308,7 +308,7 @@ void snd_sbmixer_resume(struct snd_sb *chip);
|
|||
#endif
|
||||
|
||||
/* sb8_init.c */
|
||||
int snd_sb8dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm);
|
||||
int snd_sb8dsp_pcm(struct snd_sb *chip, int device);
|
||||
/* sb8.c */
|
||||
irqreturn_t snd_sb8dsp_interrupt(struct snd_sb *chip);
|
||||
int snd_sb8_playback_open(struct snd_pcm_substream *substream);
|
||||
|
|
@ -317,7 +317,7 @@ int snd_sb8_playback_close(struct snd_pcm_substream *substream);
|
|||
int snd_sb8_capture_close(struct snd_pcm_substream *substream);
|
||||
/* midi8.c */
|
||||
irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip);
|
||||
int snd_sb8dsp_midi(struct snd_sb *chip, int device, struct snd_rawmidi ** rrawmidi);
|
||||
int snd_sb8dsp_midi(struct snd_sb *chip, int device);
|
||||
|
||||
/* sb16_init.c */
|
||||
int snd_sb16dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue