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

net: pcnet32: 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>
Acked-by: Don Fry <pcnet32@frontier.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jingoo Han and committed by
David S. Miller
3638d30a 705d1c35

-1
-1
drivers/net/ethernet/amd/pcnet32.c
··· 2818 2818 lp->init_block, lp->init_dma_addr); 2819 2819 free_netdev(dev); 2820 2820 pci_disable_device(pdev); 2821 - pci_set_drvdata(pdev, NULL); 2822 2821 } 2823 2822 } 2824 2823