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

video: intelfb: 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: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Jingoo Han and committed by
Tomi Valkeinen
07af229a 17a7a198

-2
-2
drivers/video/intelfb/intelfbdrv.c
··· 931 931 return; 932 932 933 933 cleanup(dinfo); 934 - 935 - pci_set_drvdata(pdev, NULL); 936 934 } 937 935 938 936 /***************************************************************