diff mbox

spi: unnecessary double init_completion removed

Message ID 1419356493-22539-1-git-send-email-der.herr@hofr.at (mailing list archive)
State New, archived
Headers show

Commit Message

Nicholas Mc Guire Dec. 23, 2014, 5:41 p.m. UTC
The double call to init_completion(&mpc8xxx_spi->done); is not needed
presumably this is a editing mistake only.


Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
---
 drivers/spi/spi-fsl-lib.c |    2 --
 1 file changed, 2 deletions(-)

--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Mark Brown Dec. 24, 2014, 11:58 a.m. UTC | #1
On Tue, Dec 23, 2014 at 06:41:33PM +0100, Nicholas Mc Guire wrote:
> The double call to init_completion(&mpc8xxx_spi->done); is not needed
> presumably this is a editing mistake only.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-fsl-lib.c b/drivers/spi/spi-fsl-lib.c
index 446b737..9d3f9e0 100644
--- a/drivers/spi/spi-fsl-lib.c
+++ b/drivers/spi/spi-fsl-lib.c
@@ -102,8 +102,6 @@  void mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
 	mpc8xxx_spi->rx_shift = 0;
 	mpc8xxx_spi->tx_shift = 0;

-	init_completion(&mpc8xxx_spi->done);
-
 	master->bus_num = pdata->bus_num;
 	master->num_chipselect = pdata->max_chipselect;