Re: [PATCH] PCI: endpoint: not need to free epf_test

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

 



On Thu, Aug 03, 2017 at 10:44:11AM +0800, Shawn Lin wrote:
> It's from devm_kzalloc. so not need to free it when removing
> the test driver.
> 
> Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx>

Kishon?

> ---
> Just compile only. Unless I missed something when
> trying to support ep mode for pcie-rockchip and find this
> issue.
> 
>  drivers/pci/endpoint/functions/pci-epf-test.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c
> index 53fff80..4e3abbd 100644
> --- a/drivers/pci/endpoint/functions/pci-epf-test.c
> +++ b/drivers/pci/endpoint/functions/pci-epf-test.c
> @@ -455,9 +455,6 @@ static int pci_epf_test_probe(struct pci_epf *epf)
>  
>  static int pci_epf_test_remove(struct pci_epf *epf)
>  {
> -	struct pci_epf_test *epf_test = epf_get_drvdata(epf);
> -
> -	kfree(epf_test);
>  	return 0;
>  }
>  
> -- 
> 1.9.1
> 
> 



[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