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

uio: uio_cif: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
8a4c10f8 e5651686

-1
-1
drivers/uio/uio_cif.c
··· 106 106 uio_unregister_device(info); 107 107 pci_release_regions(dev); 108 108 pci_disable_device(dev); 109 - pci_set_drvdata(dev, NULL); 110 109 iounmap(info->mem[0].internal_addr); 111 110 112 111 kfree (info);