linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: remove redundant variable assignment
@ 2012-03-14 17:37 Guennadi Liakhovetski
       [not found] ` <Pine.LNX.4.64.1203141836000.30291-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Guennadi Liakhovetski @ 2012-03-14 17:37 UTC (permalink / raw)
  To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski-Mmb7MZpHnFY@public.gmane.org>
---
 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/

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

end of thread, other threads:[~2012-03-15  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 17:37 [PATCH] spi: remove redundant variable assignment Guennadi Liakhovetski
     [not found] ` <Pine.LNX.4.64.1203141836000.30291-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
2012-03-15  9:30   ` Grant Likely

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).