Skip to content

ALSA: Allow NULL passed to snd_ctl_remove()

Takashi Iwai linux-sound 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ALSA: control: Allow NULL passed to snd_ctl_remove()sound/core/control.c+3 -00 replies
2/5ALSA: sb: Drop NULL check for snd_ctl_remove()sound/isa/sb/emu8000.c sound/isa/sb/sb16_csp.c+6 -120 replies
3/5ALSA: emu10k1: Drop NULL check for snd_ctl_remove()sound/pci/emu10k1/emufx.c+1 -41 reply
4/5ALSA: hda: Drop NULL check for snd_ctl_remove()sound/pci/hda/hda_cs_dsp_ctl.c sound/pci/hda/tas2781_hda_i2c.c+5 -100 replies
5/5ALSA: spi: Drop NULL check for snd_ctl_remove()sound/spi/at73c213.c+2 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] ALSA: Allow NULL passed to snd_ctl_remove()

This is a small series of cleanup patches for the call patterns with snd_ctl_remove() and NULL kcontrol.
Now snd_ctl_remove() accepts the NULL argument just like free() or kfree(), so that the callers can be cleaned up without NULL checks.

No functional changes should be introduced by this patch set.

Takashi

===

Takashi Iwai (5):
ALSA: control: Allow NULL passed to snd_ctl_remove()
ALSA: sb: Drop NULL check for snd_ctl_remove()
ALSA: emu10k1: Drop NULL check for snd_ctl_remove()
ALSA: hda: Drop NULL check for snd_ctl_remove()
ALSA: spi: Drop NULL check for snd_ctl_remove()

 sound/core/control.c            |  3 +++
 sound/isa/sb/emu8000.c          |  6 ++----
 sound/isa/sb/sb16_csp.c         | 12 ++++--------
 sound/pci/emu10k1/emufx.c       |  5 +----
 sound/pci/hda/hda_cs_dsp_ctl.c  |  2 +-
 sound/pci/hda/tas2781_hda_i2c.c | 13 ++++---------
 sound/spi/at73c213.c            |  8 ++------
 7 files changed, 17 insertions(+), 32 deletions(-)
Signature · 1 line
2.43.0