mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 14:42:34 -04:00
ALSA: hda/ca0132: Fix using plain integer as NULL pointer in add_tuning_control
The 'add_tuning_control' function initializes two pointers using the integer 0 instead of the NULL pointer, triggering sparse warnings. Replaced both instaces of '0' with 'NULL' to resolve the type mismatch and suppress the sparse warnings. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202506100842.d8lwwdwU-lkp@intel.com/ Signed-off-by: Lucy Thrun <lucy.thrun@digital-rabbithole.de> Link: https://patch.msgid.link/20250610175012.918-2-lucy.thrun@digital-rabbithole.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -4385,8 +4385,8 @@ static int add_tuning_control(struct hda_codec *codec,
|
||||
|
||||
knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE |
|
||||
SNDRV_CTL_ELEM_ACCESS_TLV_READ;
|
||||
knew.tlv.c = 0;
|
||||
knew.tlv.p = 0;
|
||||
knew.tlv.c = NULL;
|
||||
knew.tlv.p = NULL;
|
||||
switch (pnid) {
|
||||
case VOICE_FOCUS:
|
||||
knew.info = voice_focus_ctl_info;
|
||||
|
||||
Reference in New Issue
Block a user