Skip to contentSkip to conversation

ARM:common: deleting waste code which never execute

PATCH New Chen Gang 1 participant 1 message Jan 29, 2013 Arm (32-bit)

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH v2 1/1 ARM:common: deleting waste code which never execute

deleting waste code which never execute

---
 arch/arm/common/scoop.c |    3 ---
 1 file changed, 3 deletions(-)
arch/arm/common/scoop.c +0 -3
index a5c3dc3..a20fa80 100644
@@ -182,7 +182,6 @@ static int scoop_probe(struct platform_device *pdev)
 	struct scoop_config *inf;
 	struct resource *mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	int ret;
-	int temp;
 
 	if (!mem)
 		return -EINVAL;
@@ -232,8 +231,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:
Signature · 1 line
1.7.10.4