linux/sound/isa/sb
Takashi Iwai 36e7b12b21 ALSA: sb: Minor coding style fixes
The handling of snd_ctl_new1() and snd_ctl_add() can be sometimes
tricky, as snd_ctl_add() automatically removes the passed object at
its error path.  The recent fix addressed an overlooked issue that is
relevant with that in SB driver code, and it can be a bit more
simplified by assigning to a temporary variable, i.e. storing to the
struct field only after the creation succeeds.

Link: https://lore.kernel.org/r/20210608140540.17885-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-06-09 17:29:37 +02:00
..
emu8000_callback.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
emu8000_local.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
emu8000_patch.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
emu8000_pcm.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
emu8000_synth.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
emu8000.c ALSA: sb: Minor coding style fixes 2021-06-09 17:29:37 +02:00
jazz16.c module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sb8_main.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sb8_midi.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sb8.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sb16_csp.c ALSA: sb: Minor coding style fixes 2021-06-09 17:29:37 +02:00
sb16_main.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sb16.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sb_common.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sb_mixer.c ALSA: sb: Fix assignment in if condition 2021-06-09 17:29:35 +02:00
sbawe.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00