Skip to content

Commit 805b196

Browse files
tstrukbjorn-helgaas
authored andcommitted
PCI/P2PDMA: Remove redundant goto
Remove redundant goto in pci_alloc_p2pmem(). Link: https://lore.kernel.org/r/20231023084050.55230-1-tstruk@gmail.com Signed-off-by: Tadeusz Struk <tstruk@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
1 parent 4a7ce83 commit 805b196

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/pci/p2pdma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,6 @@ void *pci_alloc_p2pmem(struct pci_dev *pdev, size_t size)
837837
if (unlikely(!percpu_ref_tryget_live_rcu(ref))) {
838838
gen_pool_free(p2pdma->pool, (unsigned long) ret, size);
839839
ret = NULL;
840-
goto out;
841840
}
842841
out:
843842
rcu_read_unlock();

0 commit comments

Comments
 (0)