From: "Péter Ujfalusi" <peter.ujfalusi@linux.intel.com>
To: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>,
pierre-louis.bossart@linux.intel.com
Cc: lgirdwood@gmail.com, yung-chuan.liao@linux.intel.com,
ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com,
daniel.baluta@nxp.com, broonie@kernel.org, perex@perex.cz,
tiwai@suse.com, sound-open-firmware@alsa-project.org,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
Abaci Robot <abaci@linux.alibaba.com>
Subject: Re: [PATCH] ASoC: SOF: Simplify the calculation of variables
Date: Fri, 12 May 2023 13:13:49 +0300 [thread overview]
Message-ID: <12e47cb1-0744-6470-d79b-af1aeea86f9a@linux.intel.com> (raw)
In-Reply-To: <20230512064225.75358-1-jiapeng.chong@linux.alibaba.com>
On 12/05/2023 09:42, Jiapeng Chong wrote:
> ./sound/soc/sof/pcm.c:372:27-29: WARNING !A || A && B is equivalent to !A || B.
This is correct.
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4938
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
> sound/soc/sof/pcm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c
> index 567db32173a8..d14e7fd2c2ee 100644
> --- a/sound/soc/sof/pcm.c
> +++ b/sound/soc/sof/pcm.c
> @@ -369,7 +369,7 @@ static int sof_pcm_trigger(struct snd_soc_component *component,
> case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
> case SNDRV_PCM_TRIGGER_STOP:
> /* invoke platform trigger to stop DMA even if pcm_ops isn't set or if it failed */
> - if (!pcm_ops || (pcm_ops && !pcm_ops->platform_stop_during_hw_free))
> + if (!pcm_ops || !pcm_ops->platform_stop_during_hw_free)
> snd_sof_pcm_platform_trigger(sdev, substream, cmd);
> break;
> default:
--
Péter
next prev parent reply other threads:[~2023-05-12 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-12 6:42 [PATCH] ASoC: SOF: Simplify the calculation of variables Jiapeng Chong
2023-05-12 10:13 ` Péter Ujfalusi [this message]
2023-05-15 15:21 ` 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=12e47cb1-0744-6470-d79b-af1aeea86f9a@linux.intel.com \
--to=peter.ujfalusi@linux.intel.com \
--cc=abaci@linux.alibaba.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=daniel.baluta@nxp.com \
--cc=jiapeng.chong@linux.alibaba.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=ranjani.sridharan@linux.intel.com \
--cc=sound-open-firmware@alsa-project.org \
--cc=tiwai@suse.com \
--cc=yung-chuan.liao@linux.intel.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