Re: [PATCH] p2pdma: remove redundant goto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2023-10-23 02:40, Tadeusz Struk wrote:
> Remove redundant goto in pci_alloc_p2pmem()
> 
> Signed-off-by: Tadeusz Struk <tstruk@xxxxxxxxx>

Makes sense to me.

Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>

Logan


> ---
>  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();



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux