The status variable is guaranteed to be 0 at that location anyway.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
---
 drivers/spi/spi.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index b2ccdea..bce1a55 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -627,8 +627,6 @@ int spi_register_master(struct spi_master *master)
                spi_match_master_to_boardinfo(master, &bi->board_info);
        mutex_unlock(&board_lock);
 
-       status = 0;
-
        /* Register devices from the device tree */
        of_register_spi_devices(master);
 done:
-- 
1.7.2.5


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to