mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
PCI: EPF: dma-test: Fix Coevrity issues
Fix coverity issue of dead code and unreachable code. Bug 3952896 Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com> Change-Id: I6ca4b485f6b053ea6787b76f3fae95d8f6914c98 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2905249 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
98b2b3ff4f
commit
6a981ab712
@@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* PCIe DMA EPF test framework for Tegra PCIe
|
* PCIe DMA EPF test framework for Tegra PCIe
|
||||||
*
|
*
|
||||||
* Copyright (C) 2021-2022 NVIDIA Corporation. All rights reserved.
|
* Copyright (C) 2021-2023 NVIDIA Corporation. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/crc32.h>
|
#include <linux/crc32.h>
|
||||||
@@ -1348,11 +1348,11 @@ wr2_task:
|
|||||||
wr1_task:
|
wr1_task:
|
||||||
kthread_stop(epfnv->wr0_task);
|
kthread_stop(epfnv->wr0_task);
|
||||||
wr0_task:
|
wr0_task:
|
||||||
#endif
|
|
||||||
epfnv->async_dma = false;
|
epfnv->async_dma = false;
|
||||||
epfnv->task_done = 0;
|
epfnv->task_done = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void init_debugfs(struct pcie_epf_dma *epfnv)
|
static void init_debugfs(struct pcie_epf_dma *epfnv)
|
||||||
@@ -1699,9 +1699,6 @@ static int pcie_dma_epf_probe(struct pci_epf *epf)
|
|||||||
|
|
||||||
epfnv->edma.ll_desc = devm_kzalloc(dev, sizeof(*epfnv->ll_desc) * NUM_EDMA_DESC,
|
epfnv->edma.ll_desc = devm_kzalloc(dev, sizeof(*epfnv->ll_desc) * NUM_EDMA_DESC,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!epfnv)
|
|
||||||
return -ENOMEM;
|
|
||||||
|
|
||||||
gepfnv = epfnv;
|
gepfnv = epfnv;
|
||||||
epf_set_drvdata(epf, epfnv);
|
epf_set_drvdata(epf, epfnv);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user