Skip to content

Commit

Permalink
drivers/spi-rockchip.c : Remove redundant variable slave
Browse files Browse the repository at this point in the history
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>
Link: https://lore.kernel.org/r/20230226063334.7489-1-sensor1010@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Lizhe authored and Mark Brown committed Mar 5, 2023

Unverified

No user is associated with the committer email.
1 parent d447fa6 commit 8c220e6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/spi/spi-rockchip.c
Original file line number Diff line number Diff line change
@@ -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 */
rs->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem);

0 comments on commit 8c220e6

Please sign in to comment.