Skip to content

Commit 913b196

Browse files
Sachin Kamatbroonie
authored andcommitted
spi: spi-xilinx: Remove redundant platform_set_drvdata()
Setting platform data to NULL is not necessary. Also fixes the following sparse warning: drivers/spi/spi-xilinx.c:508:35: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 082339b commit 913b196

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/spi/spi-xilinx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ static int xilinx_spi_probe(struct platform_device *dev)
534534
static int xilinx_spi_remove(struct platform_device *dev)
535535
{
536536
xilinx_spi_deinit(platform_get_drvdata(dev));
537-
platform_set_drvdata(dev, 0);
538537

539538
return 0;
540539
}

0 commit comments

Comments
 (0)