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/[email protected] Signed-off-by: Tadeusz Struk <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]>
1 parent 4a7ce83 commit 805b196

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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)