From: "Krzysztof Wilczyński" <kw@linux.com>
To: 2564278112@qq.com
Cc: manivannan.sadhasivam@linaro.org, kishon@kernel.org,
bhelgaas@google.com, cassel@kernel.org, Frank.Li@nxp.com,
dlemoal@kernel.org, jiangwang@kylinos.cn,
linux-pci@vger.kernel.org
Subject: Re: [PATCH] pci:endpoint Remove redundant returns
Date: Mon, 4 Nov 2024 22:53:42 +0900 [thread overview]
Message-ID: <20241104135342.GA2804960@rocinante> (raw)
In-Reply-To: <20241104133500.GD2504924@rocinante>
Hello,
> [+Cc linux-pci mailing list]
>
> > In fact, void function return statements are not generally useful.
>
> ... unless used within the code for control flow. :)
>
> > dma_release_channel(epf_test->dma_chan_rx);
> > epf_test->dma_chan_rx = NULL;
> > -
> > - return;
>
> Makes sense.
>
> For reference, this surplus return statement was added in the commit
> 8353813c88ef ("PCI: endpoint: Enable DMA tests for endpoints with DMA
> capabilities").
Applied to endpoint, thank you!
[01/01] PCI: endpoint: Remove surplus return statement from pci_epf_test_clean_dma_chan()
https://git.kernel.org/pci/pci/c/3fdf564b21d3
Krzysztof
next prev parent reply other threads:[~2024-11-04 13:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <tencent_1039A1784512AF88CA1844804F7DEC059407@qq.com>
2024-11-04 13:35 ` [PATCH] pci:endpoint Remove redundant returns Krzysztof Wilczyński
2024-11-04 13:53 ` Krzysztof Wilczyński [this message]
2024-11-04 23:46 ` Bjorn Helgaas
2024-11-05 0:43 ` Krzysztof Wilczyński
2024-11-05 8:50 ` Krzysztof Wilczyński
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=20241104135342.GA2804960@rocinante \
--to=kw@linux.com \
--cc=2564278112@qq.com \
--cc=Frank.Li@nxp.com \
--cc=bhelgaas@google.com \
--cc=cassel@kernel.org \
--cc=dlemoal@kernel.org \
--cc=jiangwang@kylinos.cn \
--cc=kishon@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.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