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

Commit 917ac48d authored by Tobias Klauser's avatar Tobias Klauser Committed by David S. Miller
Browse files

arc_emac: Remove unused pointer to net_device from arc_emac_priv



The pointer to the struct net_device in the private data is only
assigned but never used, so delete it.

Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ff458f6f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -105,7 +105,6 @@ struct buffer_state {
/**
 * struct arc_emac_priv - Storage of EMAC's private information.
 * @dev:	Pointer to the current device.
 * @ndev:	Pointer to the current network device.
 * @phy_dev:	Pointer to attached PHY device.
 * @bus:	Pointer to the current MII bus.
 * @regs:	Base address of EMAC memory-mapped control registers.
@@ -126,7 +125,6 @@ struct buffer_state {
struct arc_emac_priv {
	/* Devices */
	struct device *dev;
	struct net_device *ndev;
	struct phy_device *phy_dev;
	struct mii_bus *bus;

+0 −1
Original line number Diff line number Diff line
@@ -720,7 +720,6 @@ static int arc_emac_probe(struct platform_device *pdev)

	priv = netdev_priv(ndev);
	priv->dev = &pdev->dev;
	priv->ndev = ndev;

	priv->regs = devm_ioremap_resource(&pdev->dev, &res_regs);
	if (IS_ERR(priv->regs)) {