mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 07:42:38 -04:00
ALSA: usb-audio: Simplify NULL comparison in mixer_quirks
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
This commit is contained in:
committed by
Takashi Iwai
parent
03ddd3bdb9
commit
f2d6d660e8
@@ -129,7 +129,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);
|
||||
|
||||
Reference in New Issue
Block a user