From: Lizhe Date: Sun, 26 Feb 2023 06:33:34 +0000 (+0800) Subject: drivers/spi-rockchip.c : Remove redundant variable slave X-Git-Tag: v6.6.17~5010^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c220e6c6da9c2f70a78ba8b3121893b3634a54c;p=platform%2Fkernel%2Flinux-rpi.git drivers/spi-rockchip.c : Remove redundant variable slave 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 Link: https://lore.kernel.org/r/20230226063334.7489-1-sensor1010@163.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 4f69c38..4e73ce1 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 */ rs->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &mem);