Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Matthias Brugger <matthias.bgg@gmail.com>
To: Tang Bin <tangbin@cmss.chinamobile.com>,
	lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz,
	tiwai@suse.com, angelogioacchino.delregno@collabora.com
Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org
Subject: Re: [PATCH 1/2] ASoC: mediatek: mt8188: Remove unnecessary variable assignments
Date: Thu, 10 Oct 2024 13:00:14 +0200	[thread overview]
Message-ID: <fccf8cbd-82ec-4d97-a5aa-faf57ac78874@gmail.com> (raw)
In-Reply-To: <20241010073547.3720-1-tangbin@cmss.chinamobile.com>



On 10/10/24 09:35, Tang Bin wrote:
> In the function mtk_dai_hdmitx_dptx_hw_params, the variable
> 'ret' is redundant, thus remove it.
> 
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>

> ---
>   sound/soc/mediatek/mt8188/mt8188-dai-etdm.c | 5 +----
>   1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
> index 2a48f5fd6..69a091dad 100644
> --- a/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
> +++ b/sound/soc/mediatek/mt8188/mt8188-dai-etdm.c
> @@ -2422,7 +2422,6 @@ static int mtk_dai_hdmitx_dptx_hw_params(struct snd_pcm_substream *substream,
>   	unsigned int channels = params_channels(params);
>   	snd_pcm_format_t format = params_format(params);
>   	int width = snd_pcm_format_physical_width(format);
> -	int ret;
>   
>   	if (!is_valid_etdm_dai(dai->id))
>   		return -EINVAL;
> @@ -2450,9 +2449,7 @@ static int mtk_dai_hdmitx_dptx_hw_params(struct snd_pcm_substream *substream,
>   		etdm_data->data_mode = MTK_DAI_ETDM_DATA_MULTI_PIN;
>   	}
>   
> -	ret = mtk_dai_etdm_configure(afe, rate, channels, width, dai->id);
> -
> -	return ret;
> +	return mtk_dai_etdm_configure(afe, rate, channels, width, dai->id);
>   }
>   
>   static int mtk_dai_hdmitx_dptx_set_sysclk(struct snd_soc_dai *dai,


  parent reply	other threads:[~2024-10-10 11:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-10  7:35 [PATCH 1/2] ASoC: mediatek: mt8188: Remove unnecessary variable assignments Tang Bin
2024-10-10  9:49 ` Mark Brown
2024-10-10  9:55   ` 唐彬
2024-10-10 11:01     ` Matthias Brugger
2024-10-10 12:51     ` Mark Brown
2024-10-10 11:00 ` Matthias Brugger [this message]
2024-10-11 15:23 ` (subset) " Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fccf8cbd-82ec-4d97-a5aa-faf57ac78874@gmail.com \
    --to=matthias.bgg@gmail.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tangbin@cmss.chinamobile.com \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox