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

drivers/memstick/host/rtsx_pci_ms.c: remove unnecessary platform_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>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Jingoo Han and committed by
Linus Torvalds
ccf5a04f b67fb086

-2
-2
drivers/memstick/host/rtsx_pci_ms.c
··· 612 612 memstick_remove_host(msh); 613 613 memstick_free_host(msh); 614 614 615 - platform_set_drvdata(pdev, NULL); 616 - 617 615 dev_dbg(&(pdev->dev), 618 616 ": Realtek PCI-E Memstick controller has been removed\n"); 619 617