@@ -311,9 +311,6 @@ static int ingenic_mac_probe(struct platform_device *pdev)
#ifdef CONFIG_PM_SLEEP
static int ingenic_mac_suspend(struct device *dev)
{
- struct net_device *ndev = dev_get_drvdata(dev);
- struct stmmac_priv *priv = netdev_priv(ndev);
- struct ingenic_mac *mac = priv->plat->bsp_priv;
int ret;
ret = stmmac_suspend(dev);
@@ -325,7 +322,6 @@ static int ingenic_mac_resume(struct device *dev)
{
struct net_device *ndev = dev_get_drvdata(dev);
struct stmmac_priv *priv = netdev_priv(ndev);
- struct ingenic_mac *mac = priv->plat->bsp_priv;
int ret;
ret = ingenic_mac_init(priv->plat);
Remove unused variables in ingenic_mac_suspend() and ingenic_mac_resume(). Fixes: 2bb4b98b60d7 ("net: stmmac: Add Ingenic SoCs MAC support.") Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> --- drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c | 4 ---- 1 file changed, 4 deletions(-)