Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: 8139cp: 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>

authored by

Jingoo Han and committed by
David S. Miller
ca30ab2c 726a2fbe

-1
-1
drivers/net/ethernet/realtek/8139cp.c
··· 2052 2052 pci_release_regions(pdev); 2053 2053 pci_clear_mwi(pdev); 2054 2054 pci_disable_device(pdev); 2055 - pci_set_drvdata(pdev, NULL); 2056 2055 free_netdev(dev); 2057 2056 } 2058 2057