Skip to content

Commit

Permalink
net: sungem: remove unnecessary pci_set_drvdata()
Browse files Browse the repository at this point in the history
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jingoo Han authored and davem330 committed Oct 23, 2013
1 parent 305a338 commit 3a93ac0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/sun/sungem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2806,8 +2806,6 @@ static void gem_remove_one(struct pci_dev *pdev)
iounmap(gp->regs);
pci_release_regions(pdev);
free_netdev(dev);

pci_set_drvdata(pdev, NULL);
}
}

Expand Down

0 comments on commit 3a93ac0

Please sign in to comment.