diff mbox series

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

Message ID 20230226063334.7489-1-sensor1010@163.com (mailing list archive)
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(-)

Comments

Mark Brown March 6, 2023, 1:05 p.m. UTC | #1
On Sun, 26 Feb 2023 14:33:34 +0800, Lizhe wrote:
> variable slave in spi_alloc_master() or spi_alloc_slave()
> has been assigned. it is not necessary to be assigned again
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] drivers/spi-rockchip.c : Remove redundant variable slave
      commit: 8c220e6c6da9c2f70a78ba8b3121893b3634a54c

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
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);