spi: spi-s3c64xx.c Remove unused argument.
Subsystems (3)
PATCH 1/1 spi: spi-s3c64xx.c Remove unused argument.
The pointer to the driver data is never used to get the slave controller data. We can delete the unused argument from the function.
Signed-off-by Matthias Brugger <[email protected]>
--- drivers/spi/spi-s3c64xx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-s3c64xx.c +1 -2
@@ -817,7 +817,6 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi) }static struct s3c64xx_spi_csinfo *s3c64xx_get_slave_ctrldata ( -struct s3c64xx_spi_driver_data *sdd,struct spi_device *spi) {struct s3c64xx_spi_csinfo *cs;
@@ -874,7 +873,7 @@ static int s3c64xx_spi_setup(struct spi_device *spi) sdd =spi_master_get_devdata (spi->master);if (!cs && spi->dev.of_node) { - cs =s3c64xx_get_slave_ctrldata (sdd, spi); + cs =s3c64xx_get_slave_ctrldata (spi); spi->controller_data = cs; }
Signature · 1 line
1.7.11.7
Quoted 2 lines · Matthias Brugger
The pointer to the driver data is never used to get the slave controller data. We can delete the unused argument from the function.
Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130326/66f35712/attachment.sig>