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

misc: tifm: 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
a840a72d f91f9258

-3
-3
drivers/misc/tifm_7xx1.c
··· 378 378 err_out_unmap: 379 379 iounmap(fm->addr); 380 380 err_out_free: 381 - pci_set_drvdata(dev, NULL); 382 381 tifm_free_adapter(fm); 383 382 err_out_int: 384 383 pci_intx(dev, 0); ··· 403 404 404 405 for (cnt = 0; cnt < fm->num_sockets; cnt++) 405 406 tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt)); 406 - 407 - pci_set_drvdata(dev, NULL); 408 407 409 408 iounmap(fm->addr); 410 409 pci_intx(dev, 0);