summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2025-05-26 17:07:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-10-02 13:44:05 +0200
commit80fffa366ad64f16011616cdaf81ff94f293539e (patch)
tree7d9a6becb04f099b8f4b4adc2237f66ebeb9ae33 /sound
parent33b1035eec4b42e6806c53c2cd35bfc69ce63863 (diff)
downloadlinux-80fffa366ad64f16011616cdaf81ff94f293539e.tar.gz
linux-80fffa366ad64f16011616cdaf81ff94f293539e.tar.bz2
linux-80fffa366ad64f16011616cdaf81ff94f293539e.zip
ALSA: usb-audio: Simplify NULL comparison in mixer_quirks
[ Upstream commit f2d6d660e8fd5f4467e80743f82119201e67fa9c ] Handle report from checkpatch.pl: CHECK: Comparison to NULL could be written "t->name" Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20250526-dualsense-alsa-jack-v1-7-1a821463b632@collabora.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/mixer_quirks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c
index 1eae6e83d025..3bd2daba8eca 100644
--- a/sound/usb/mixer_quirks.c
+++ b/sound/usb/mixer_quirks.c
@@ -128,7 +128,7 @@ static int snd_create_std_mono_table(struct usb_mixer_interface *mixer,
{
int err;
- while (t->name != NULL) {
+ while (t->name) {
err = snd_create_std_mono_ctl(mixer, t->unitid, t->control,
t->cmask, t->val_type, t->name,
t->tlv_callback);