mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02: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:
parent
03ddd3bdb9
commit
f2d6d660e8
|
@ -129,7 +129,7 @@ static int snd_create_std_mono_table(struct usb_mixer_interface *mixer,
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
while (t->name != NULL) {
|
while (t->name) {
|
||||||
err = snd_create_std_mono_ctl(mixer, t->unitid, t->control,
|
err = snd_create_std_mono_ctl(mixer, t->unitid, t->control,
|
||||||
t->cmask, t->val_type, t->name,
|
t->cmask, t->val_type, t->name,
|
||||||
t->tlv_callback);
|
t->tlv_callback);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user