diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-22 00:20:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-22 02:11:53 -0400 |
commit | 5d41bf328f6b13de1218c8741cb966162a82608c (patch) | |
tree | 4e942e124f61d76df3f83879fb32278c3d9fcfd4 /drivers/net/ethernet/sun | |
parent | 7f8cbb23f598a07f9de7ca66ab86d772f08876b3 (diff) |
net: sunhme: remove unnecessary pci_set_drvdata()
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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun')
-rw-r--r-- | drivers/net/ethernet/sun/sunhme.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index 99043b74bf2b..0dbf46f08ed5 100644 --- a/drivers/net/ethernet/sun/sunhme.c +++ b/drivers/net/ethernet/sun/sunhme.c | |||
@@ -3170,8 +3170,6 @@ static void happy_meal_pci_remove(struct pci_dev *pdev) | |||
3170 | pci_release_regions(hp->happy_dev); | 3170 | pci_release_regions(hp->happy_dev); |
3171 | 3171 | ||
3172 | free_netdev(net_dev); | 3172 | free_netdev(net_dev); |
3173 | |||
3174 | pci_set_drvdata(pdev, NULL); | ||
3175 | } | 3173 | } |
3176 | 3174 | ||
3177 | static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = { | 3175 | static DEFINE_PCI_DEVICE_TABLE(happymeal_pci_ids) = { |