Skip to content

Commit 7aa869f

Browse files
cristiccgregkh
authored andcommitted
ALSA: usb-audio: Simplify NULL comparison in mixer_quirks
[ Upstream commit f2d6d66 ] 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>
1 parent f6d990d commit 7aa869f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/usb/mixer_quirks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static int snd_create_std_mono_table(struct usb_mixer_interface *mixer,
125125
{
126126
int err;
127127

128-
while (t->name != NULL) {
128+
while (t->name) {
129129
err = snd_create_std_mono_ctl(mixer, t->unitid, t->control,
130130
t->cmask, t->val_type, t->name, t->tlv_callback);
131131
if (err < 0)

0 commit comments

Comments
 (0)