From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Yu Liao <liaoyu15@huawei.com>
Cc: linux-kernel@vger.kernel.org, liwei391@huawei.com
Subject: Re: [PATCH -next] bus: mhi: ep: remove useless judgement in mhi_ep_ring_add_element
Date: Thu, 17 Mar 2022 10:18:29 +0530 [thread overview]
Message-ID: <20220317044829.GA6627@thinkpad> (raw)
In-Reply-To: <ef12136f-fc4d-05c5-a7bd-66ade28957e4@huawei.com>
Hi,
On Thu, Mar 17, 2022 at 11:52:32AM +0800, Yu Liao wrote:
> Hi Manivannan, I found that 'ret = ' has been removed. If this is intentional,
> the check of 'ret' is redundant.
>
That's not intentional, thanks for finding it out. I've updated the patch.
Since the patches are under development, I've squashed the change with the
initial patch.
Thanks,
Mani
> Thanks,
>
> Yu
> On 2022/3/17 11:31, Yu Liao wrote:
> > Remove the check of 'ret' that is impossible to be non-zero.
> >
> > Signed-off-by: Yu Liao <liaoyu15@huawei.com>
> > ---
> > drivers/bus/mhi/ep/ring.c | 2 --
> > 1 file changed, 2 deletions(-)
> >
> > diff --git a/drivers/bus/mhi/ep/ring.c b/drivers/bus/mhi/ep/ring.c
> > index ac2043e71943..161505cd628f 100644
> > --- a/drivers/bus/mhi/ep/ring.c
> > +++ b/drivers/bus/mhi/ep/ring.c
> > @@ -131,8 +131,6 @@ int mhi_ep_ring_add_element(struct mhi_ep_ring *ring, struct mhi_ring_element *e
> >
> > mhi_cntrl->write_to_host(mhi_cntrl, (void __iomem *)el, ring->rbase + (old_offset *
> > sizeof(*el)), sizeof(*el));
> > - if (ret < 0)
> > - return ret;
> >
> > return 0;
> > }
prev parent reply other threads:[~2022-03-17 5:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-17 3:31 [PATCH -next] bus: mhi: ep: remove useless judgement in mhi_ep_ring_add_element Yu Liao
2022-03-17 3:52 ` Yu Liao
2022-03-17 4:48 ` Manivannan Sadhasivam [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=20220317044829.GA6627@thinkpad \
--to=manivannan.sadhasivam@linaro.org \
--cc=liaoyu15@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=liwei391@huawei.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