]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: stmmac: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 22 Oct 2013 04:20:25 +0000 (13:20 +0900)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Oct 2013 06:11:53 +0000 (02:11 -0400)
commit7f8cbb23f598a07f9de7ca66ab86d772f08876b3
tree0a0ce6c234e4fe37c39bf7c1a600febee9eab647
parent215081f35320658e2a6d4d629d8aa5d58702773a
net: stmmac: 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>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c