Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ALSA: hda/ca0132 - remove the unneeded result variable

Return the value dsp_allocate_ports() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220922112846.236987-1-ye.xingchen@zte.com.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

ye xingchen and committed by
Takashi Iwai
b5eee17c 2fa22c3c

+1 -4
+1 -4
sound/pci/hda/patch_ca0132.c
··· 2962 2962 const unsigned short fmt, 2963 2963 unsigned int *port_map) 2964 2964 { 2965 - int status; 2966 2965 unsigned int num_chans; 2967 2966 2968 2967 unsigned int sample_rate_div = ((get_hdafmt_rate(fmt) >> 0) & 3) + 1; ··· 2975 2976 2976 2977 num_chans = get_hdafmt_chs(fmt) + 1; 2977 2978 2978 - status = dsp_allocate_ports(codec, num_chans, rate_multi, port_map); 2979 - 2980 - return status; 2979 + return dsp_allocate_ports(codec, num_chans, rate_multi, port_map); 2981 2980 } 2982 2981 2983 2982 /*