Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 508c482e authored by Suraj Jaiswal's avatar Suraj Jaiswal
Browse files

net: stmmac: removed unused variable



Add support to remove unused variables.

Change-Id: I83c3ff5b708506e5f59f955dd08b4968f2e93b51
Acked-by: default avatarNagarjuna Chaganti <nchagant@qti.qualcomm.com>
Signed-off-by: default avatarSuraj Jaiswal <jsuraj@codeaurora.org>
parent edd74d46
Loading
Loading
Loading
Loading
+6 −12
Original line number Original line Diff line number Diff line
@@ -622,12 +622,12 @@ static irqreturn_t ETHQOS_PHY_ISR(int irq, void *dev_data)
	struct qcom_ethqos *ethqos = (struct qcom_ethqos *)dev_data;
	struct qcom_ethqos *ethqos = (struct qcom_ethqos *)dev_data;


	queue_work(system_wq, &ethqos->emac_phy_work);
	queue_work(system_wq, &ethqos->emac_phy_work);
	return IRQ_HANDLED;
}
}


static int ethqos_phy_intr_enable(struct qcom_ethqos *ethqos)
static int ethqos_phy_intr_enable(struct qcom_ethqos *ethqos)
{
{
	int ret = 0;
	int ret = 0;
	struct net_device *dev = platform_get_drvdata(ethqos->pdev);


	INIT_WORK(&ethqos->emac_phy_work, ethqos_defer_phy_isr_work);
	INIT_WORK(&ethqos->emac_phy_work, ethqos_defer_phy_isr_work);
	ret = request_irq(ethqos->phy_intr, ETHQOS_PHY_ISR,
	ret = request_irq(ethqos->phy_intr, ETHQOS_PHY_ISR,
@@ -662,9 +662,6 @@ static int emac_emb_smmu_cb_probe(struct platform_device *pdev)
	int result = 0;
	int result = 0;
	u32 iova_ap_mapping[2];
	u32 iova_ap_mapping[2];
	struct device *dev = &pdev->dev;
	struct device *dev = &pdev->dev;
	int atomic_ctx = 1;
	int fast = 1;
	int bypass = 1;


	ETHQOSDBG("EMAC EMB SMMU CB probe: smmu pdev=%p\n", pdev);
	ETHQOSDBG("EMAC EMB SMMU CB probe: smmu pdev=%p\n", pdev);


@@ -702,11 +699,10 @@ static int emac_emb_smmu_cb_probe(struct platform_device *pdev)
static int qcom_ethqos_probe(struct platform_device *pdev)
static int qcom_ethqos_probe(struct platform_device *pdev)
{
{
	struct device_node *np = pdev->dev.of_node;
	struct device_node *np = pdev->dev.of_node;
	struct plat_stmmacenet_data *plat_dat;
	struct plat_stmmacenet_data *plat_dat = NULL;
	struct stmmac_resources stmmac_res;
	struct stmmac_resources stmmac_res;
	const struct ethqos_emac_driver_data *data;
	struct qcom_ethqos *ethqos = NULL;
	struct qcom_ethqos *ethqos;
	struct resource *res = NULL;
	struct resource *res;
	int ret;
	int ret;


	if (of_device_is_compatible(pdev->dev.of_node,
	if (of_device_is_compatible(pdev->dev.of_node,
@@ -741,16 +737,14 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
		goto err_mem;
		goto err_mem;
	}
	}


	data = of_device_get_match_data(&pdev->dev);
	ethqos->por = data->por;
	ethqos->num_por = data->num_por;

	ethqos->rgmii_clk = devm_clk_get(&pdev->dev, "rgmii");
	ethqos->rgmii_clk = devm_clk_get(&pdev->dev, "rgmii");
	if (IS_ERR(ethqos->rgmii_clk)) {
	if (IS_ERR(ethqos->rgmii_clk)) {
		ret = PTR_ERR(ethqos->rgmii_clk);
		ret = PTR_ERR(ethqos->rgmii_clk);
		goto err_mem;
		goto err_mem;
	}
	}


	ethqos->por = of_device_get_match_data(&pdev->dev);

	ret = clk_prepare_enable(ethqos->rgmii_clk);
	ret = clk_prepare_enable(ethqos->rgmii_clk);
	if (ret)
	if (ret)
		goto err_mem;
		goto err_mem;
+1 −1
Original line number Original line Diff line number Diff line
@@ -285,9 +285,9 @@ static int stmmac_mtl_setup(struct platform_device *pdev,
		dev_err(&pdev->dev, "Not all TX queues were configured\n");
		dev_err(&pdev->dev, "Not all TX queues were configured\n");
		goto out;
		goto out;
	}
	}
#endif


out:
out:
#endif
	of_node_put(rx_node);
	of_node_put(rx_node);
	of_node_put(tx_node);
	of_node_put(tx_node);
	of_node_put(q_node);
	of_node_put(q_node);