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

net: icplus: 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
3ee785f8 df2a6448

-1
-1
drivers/net/ethernet/icplus/ipg.c
··· 2183 2183 2184 2184 free_netdev(dev); 2185 2185 pci_disable_device(pdev); 2186 - pci_set_drvdata(pdev, NULL); 2187 2186 } 2188 2187 2189 2188 static const struct net_device_ops ipg_netdev_ops = {