From: "Surendran K" <surendran.k@samsung.com>
To: "'Vinod Koul'" <vkoul@kernel.org>
Cc: <dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<shaik.ameer@samsung.com>, <alim.akhtar@samsung.com>,
<pankaj.dubey@samsung.com>
Subject: RE: [PATCH] DMA: PL330: Remove unreachable code
Date: Fri, 16 Oct 2020 03:30:53 -0700 [thread overview]
Message-ID: <0cc501d6a3a7$6d9203c0$48b60b40$@samsung.com> (raw)
In-Reply-To: <20201014043933.GQ2968@vkoul-mobl>
Hi Vinod,
Thanks for pointing it out, I missed it. Will send V2 with correction.
Regards,
Surendran.
-----Original Message-----
From: Vinod Koul [mailto:vkoul@kernel.org]
Sent: Tuesday, October 13, 2020 9:40 PM
To: Surendran K <surendran.k@samsung.com>
Cc: dmaengine@vger.kernel.org; linux-kernel@vger.kernel.org;
shaik.ameer@samsung.com; alim.akhtar@samsung.com; pankaj.dubey@samsung.com
Subject: Re: [PATCH] DMA: PL330: Remove unreachable code
On 13-10-20, 17:17, Surendran K wrote:
> _setup_req(..) never returns negative value.
> Hence the condition ret < 0 is never met
The subsystem is "dmaengine", git log would tell you the tags to use
>
> Signed-off-by: Surendran K <surendran.k@samsung.com>
> ---
> drivers/dma/pl330.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index
> e9f0101d92fa..8355586c9788 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -1527,8 +1527,6 @@ static int pl330_submit_req(struct pl330_thread
> *thrd,
>
> /* First dry run to check if req is acceptable */
> ret = _setup_req(pl330, 1, thrd, idx, &xs);
> - if (ret < 0)
> - goto xfer_exit;
>
> if (ret > pl330->mcbufsz / 2) {
> dev_info(pl330->ddma.dev, "%s:%d Try increasing mcbufsz
(%i/%i)\n",
> --
> 2.17.1
--
~Vinod
prev parent reply other threads:[~2020-10-16 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20201013122030epcas5p2e576d5a2ebfaf9df8078e6ee70f3765c@epcas5p2.samsung.com>
2020-10-13 11:47 ` [PATCH] DMA: PL330: Remove unreachable code Surendran K
2020-10-14 4:39 ` Vinod Koul
2020-10-16 10:30 ` Surendran K [this message]
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='0cc501d6a3a7$6d9203c0$48b60b40$@samsung.com' \
--to=surendran.k@samsung.com \
--cc=alim.akhtar@samsung.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pankaj.dubey@samsung.com \
--cc=shaik.ameer@samsung.com \
--cc=vkoul@kernel.org \
/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