ALSA: hda/ca0132 - remove the unneeded result variable
PATCH 1/1 ALSA: hda/ca0132 - remove the unneeded result variable
From: ye xingchen <[email protected]>
Return the value dsp_allocate_ports() directly instead of storing it in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by ye xingchen <[email protected]>
--- sound/pci/hda/patch_ca0132.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
sound/pci/hda/patch_ca0132.c +1 -4
@@ -2962,7 +2962,6 @@ static int dsp_allocate_ports_format(struct hda_codec *codec,const unsigned short fmt, unsigned int *port_map) { - int status; unsigned int num_chans;unsigned int sample_rate_div = ((get_hdafmt_rate (fmt) >>0 ) &3 ) +1 ;
@@ -2976,9 +2975,7 @@ static int dsp_allocate_ports_format(struct hda_codec *codec, num_chans =get_hdafmt_chs (fmt) +1 ; - status =dsp_allocate_ports (codec, num_chans, rate_multi, port_map); - -return status; +return dsp_allocate_ports (codec, num_chans, rate_multi, port_map); }/*
Signature · 1 line
2.25.1
Takashi Iwai
AppliedQuoted 8 lines · On Thu, 22 Sep 2022 13:28:46 +0200, [email protected] wrote:
From: ye xingchen <[email protected]>
Return the value
dsp_allocate_ports()directly instead of storing it in another redundant variable.Reported-by Zeal Robot <[email protected]>Signed-off-by ye xingchen <[email protected]>
Thanks, applied.
Takashi