From: Tadeusz Struk <tstruk@gmail.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Logan Gunthorpe <logang@deltatee.com>,
linux-pci@vger.kernel.org, Tadeusz Struk <tstruk@gigaio.com>,
Tadeusz Struk <tstruk@gmail.com>
Subject: [PATCH] p2pdma: remove redundant goto
Date: Mon, 23 Oct 2023 10:40:50 +0200 [thread overview]
Message-ID: <20231023084050.55230-1-tstruk@gmail.com> (raw)
Remove redundant goto in pci_alloc_p2pmem()
Signed-off-by: Tadeusz Struk <tstruk@gmail.com>
---
drivers/pci/p2pdma.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c
index fa7370f9561a..a7776315996c 100644
--- a/drivers/pci/p2pdma.c
+++ b/drivers/pci/p2pdma.c
@@ -837,7 +837,6 @@ void *pci_alloc_p2pmem(struct pci_dev *pdev, size_t size)
if (unlikely(!percpu_ref_tryget_live_rcu(ref))) {
gen_pool_free(p2pdma->pool, (unsigned long) ret, size);
ret = NULL;
- goto out;
}
out:
rcu_read_unlock();
--
2.41.0
next reply other threads:[~2023-10-23 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-23 8:40 Tadeusz Struk [this message]
2023-10-23 15:51 ` [PATCH] p2pdma: remove redundant goto Logan Gunthorpe
2023-10-23 17:19 ` Bjorn Helgaas
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=20231023084050.55230-1-tstruk@gmail.com \
--to=tstruk@gmail.com \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=logang@deltatee.com \
--cc=tstruk@gigaio.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