diff mbox series

[v1] drivers/spi-rockchip.c : Remove redundant variable slave

Message ID 20230226063334.7489-1-sensor1010@163.com
State Accepted
Commit 8c220e6c6da9c2f70a78ba8b3121893b3634a54c
Headers show
Series [v1] drivers/spi-rockchip.c : Remove redundant variable slave | expand

Commit Message

Lizhe Feb. 26, 2023, 6:33 a.m. UTC
variable slave in spi_alloc_master() or spi_alloc_slave()
has been assigned. it is not necessary to be assigned again

Signed-off-by: Lizhe <sensor1010@163.com>
---
 drivers/spi/spi-rockchip.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index 79242dc5272d..a45717eb8890 100644
--- a/drivers/spi/spi-rockchip.c
+++ b/drivers/spi/spi-rockchip.c
@@ -772,7 +772,6 @@  static int rockchip_spi_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, ctlr);
 
 	rs = spi_controller_get_devdata(ctlr);
-	ctlr->slave = slave_mode;
 
 	/* Get basic io resource and map it */
 	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);