linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: spi-s3c64xx.c Remove unused argument.
@ 2013-03-26  9:27 Matthias Brugger
  2013-03-26 14:03 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Brugger @ 2013-03-26  9:27 UTC (permalink / raw)
  To: linux-arm-kernel

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 <matthias.bgg@gmail.com>
---
 drivers/spi/spi-s3c64xx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index e862ab8..7f5f8ee 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -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;
 	}
 
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] spi: spi-s3c64xx.c Remove unused argument.
  2013-03-26  9:27 [PATCH] spi: spi-s3c64xx.c Remove unused argument Matthias Brugger
@ 2013-03-26 14:03 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-03-26 14:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 26, 2013 at 10:27:35AM +0100, Matthias Brugger wrote:
> 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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-26 14:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26  9:27 [PATCH] spi: spi-s3c64xx.c Remove unused argument Matthias Brugger
2013-03-26 14:03 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).