Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: linux-sound@vger.kernel.org
Subject: [PATCH 0/5] ALSA: Allow NULL passed to snd_ctl_remove()
Date: Mon, 17 Jun 2024 12:05:22 +0200	[thread overview]
Message-ID: <20240617100529.6667-1-tiwai@suse.de> (raw)

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(-)

-- 
2.43.0


             reply	other threads:[~2024-06-17 10:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17 10:05 Takashi Iwai [this message]
2024-06-17 10:05 ` [PATCH 1/5] ALSA: control: Allow NULL passed to snd_ctl_remove() Takashi Iwai
2024-06-17 10:05 ` [PATCH 2/5] ALSA: sb: Drop NULL check for snd_ctl_remove() Takashi Iwai
2024-06-17 10:05 ` [PATCH 3/5] ALSA: emu10k1: " Takashi Iwai
2024-06-18 10:53   ` Takashi Iwai
2024-06-17 10:05 ` [PATCH 4/5] ALSA: hda: " Takashi Iwai
2024-06-17 10:05 ` [PATCH 5/5] ALSA: spi: " Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240617100529.6667-1-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-sound@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox