PCI: tegra194: Cleanup unused code
authorOm Prakash Singh <omp@nvidia.com>
Wed, 23 Jun 2021 10:05:25 +0000 (15:35 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 4 Aug 2021 11:28:17 +0000 (12:28 +0100)
Remove unused code from function tegra_pcie_config_ep.

Link: https://lore.kernel.org/r/20210623100525.19944-6-omp@nvidia.com
Signed-off-by: Om Prakash Singh <omp@nvidia.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Vidya Sagar <vidyas@nvidia.com>
drivers/pci/controller/dwc/pcie-tegra194.c

index 2d86e94..9049769 100644 (file)
@@ -1945,13 +1945,6 @@ static int tegra_pcie_config_ep(struct tegra_pcie_dw *pcie,
                return ret;
        }
 
-       name = devm_kasprintf(dev, GFP_KERNEL, "tegra_pcie_%u_ep_work",
-                             pcie->cid);
-       if (!name) {
-               dev_err(dev, "Failed to create PCIe EP work thread string\n");
-               return -ENOMEM;
-       }
-
        pm_runtime_enable(dev);
 
        ret = dw_pcie_ep_init(ep);