Skip to content

Commit

Permalink
uio: uio_netx: remove unnecessary pci_set_drvdata()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Jingoo Han authored and gregkh committed Sep 26, 2013
1 parent 1129308 commit c7a8eb0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/uio/uio_netx.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ static void netx_pci_remove(struct pci_dev *dev)
uio_unregister_device(info);
pci_release_regions(dev);
pci_disable_device(dev);
pci_set_drvdata(dev, NULL);
iounmap(info->mem[0].internal_addr);

kfree(info);
Expand Down

0 comments on commit c7a8eb0

Please sign in to comment.