linux/sound/isa/wavefront
Lars-Peter Clausen fa60c06569 ALSA: wss: Remove (almost) always NULL parameters
Most callers of snd_wss_pcm(), snd_wss_timer() and snd_cs4236_pcm() pass
NULL as the last parameter, some callers pass a pointer but never use it
after the function has been called and only a few callers pass a pointer and
actually use it. The later is only the case for snd_wss_pcm() for
snd_cs4236_pcm() and it is possible to get the same PCM object by accessing
the pcm field of the snd_wss struct that was passed as the first parameter.

This function removes the last parameters from the functions mentioned above
and updates the callers which used it to use chip->pcm instead. This allows
us to slightly simplify the functions since they don't have to check and set
the last parameter anymore which makes the code slightly shorter and
cleaner.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-02 16:30:08 +01:00
..
Makefile [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00
wavefront_fx.c ALSA: isa: remove __dev* attributes 2012-12-07 07:32:17 +01:00
wavefront_midi.c ALSA: isa: remove __dev* attributes 2012-12-07 07:32:17 +01:00
wavefront_synth.c ALSA: isa: not allocating enough space 2013-11-13 09:28:31 +01:00
wavefront.c ALSA: wss: Remove (almost) always NULL parameters 2015-01-02 16:30:08 +01:00