* [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
* Re: [PATCH] spi: remove redundant variable assignment
[not found] ` <Pine.LNX.4.64.1203141836000.30291-0199iw4Nj15frtckUFj5Ag@public.gmane.org>
@ 2012-03-15 9:30 ` Grant Likely
0 siblings, 0 replies; 2+ messages in thread
From: Grant Likely @ 2012-03-15 9:30 UTC (permalink / raw)
To: Guennadi Liakhovetski,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Wed, 14 Mar 2012 18:37:15 +0100 (CET), Guennadi Liakhovetski <g.liakhovetski-Mmb7MZpHnFY@public.gmane.org> wrote:
> The status variable is guaranteed to be 0 at that location anyway.
>
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski-Mmb7MZpHnFY@public.gmane.org>
Applied, thanks.
g.
> ---
> 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
> spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/spi-devel-general
--
Grant Likely, B.Sc, P.Eng.
Secret Lab Technologies,Ltd.
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
^ permalink raw reply [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).