projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ddd3b
)
ALSA: usb-audio: Simplify NULL comparison in mixer_quirks
author
Cristian Ciocaltea
<cristian.ciocaltea@collabora.com>
Mon, 26 May 2025 14:07:46 +0000
(17:07 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 9 Jun 2025 07:48:51 +0000
(09:48 +0200)
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
sound/usb/mixer_quirks.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/mixer_quirks.c
b/sound/usb/mixer_quirks.c
index 17c9cbbfce224cdcd4f80802b7fbe377969d289f..783789cbcfe2901d7dcf30580fa19bac62898897 100644
(file)
--- a/
sound/usb/mixer_quirks.c
+++ b/
sound/usb/mixer_quirks.c
@@
-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);