Skip to content

Commit

Permalink
arc_emac: Remove unused pointer to net_device from arc_emac_priv
Browse files Browse the repository at this point in the history
The pointer to the struct net_device in the private data is only
assigned but never used, so delete it.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
tklauser authored and davem330 committed Jul 9, 2014
1 parent ff458f6 commit 917ac48
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/arc/emac.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;

Expand Down
1 change: 0 additions & 1 deletion drivers/net/ethernet/arc/emac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 917ac48

Please sign in to comment.