linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM:common: deleting waste code which never execute
@ 2013-01-29 13:23 Chen Gang
  2013-01-29 13:27 ` Chen Gang
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Gang @ 2013-01-29 13:23 UTC (permalink / raw)
  To: linux-arm-kernel


  delete the waste code which never execute

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/arm/common/scoop.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c
index a5c3dc3..6ef146e 100644
--- a/arch/arm/common/scoop.c
+++ b/arch/arm/common/scoop.c
@@ -232,8 +232,6 @@ static int scoop_probe(struct platform_device *pdev)

 	return 0;

-	if (devptr->gpio.base != -1)
-		temp = gpiochip_remove(&devptr->gpio);
 err_gpio:
 	platform_set_drvdata(pdev, NULL);
 err_ioremap:
-- 
1.7.10.4

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

* [PATCH] ARM:common: deleting waste code which never execute
  2013-01-29 13:23 [PATCH] ARM:common: deleting waste code which never execute Chen Gang
@ 2013-01-29 13:27 ` Chen Gang
  0 siblings, 0 replies; 2+ messages in thread
From: Chen Gang @ 2013-01-29 13:27 UTC (permalink / raw)
  To: linux-arm-kernel


  sorry, need send patch v2 (or report warning for temp when building)

? 2013?01?29? 21:23, Chen Gang ??:
> 
>   delete the waste code which never execute
> 
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> ---
>  arch/arm/common/scoop.c |    2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/arm/common/scoop.c b/arch/arm/common/scoop.c
> index a5c3dc3..6ef146e 100644
> --- a/arch/arm/common/scoop.c
> +++ b/arch/arm/common/scoop.c
> @@ -232,8 +232,6 @@ static int scoop_probe(struct platform_device *pdev)
> 
>  	return 0;
> 
> -	if (devptr->gpio.base != -1)
> -		temp = gpiochip_remove(&devptr->gpio);
>  err_gpio:
>  	platform_set_drvdata(pdev, NULL);
>  err_ioremap:
> 


-- 
Chen Gang

Asianux Corporation

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

end of thread, other threads:[~2013-01-29 13:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29 13:23 [PATCH] ARM:common: deleting waste code which never execute Chen Gang
2013-01-29 13:27 ` Chen Gang

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