ARM: 8006/1: Remove redundant code
authorAlexander Shiyan <shc_work@mail.ru>
Sun, 16 Mar 2014 04:54:57 +0000 (05:54 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 19 Mar 2014 20:19:01 +0000 (20:19 +0000)
Statements following return will never be executed.
This patch removes this code.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/scoop.c

index a5c3dc38aa1818d29285d16789df7788bd83aa4c..6ef146edd0cd24849757ab82026c6e33ebf9a199 100644 (file)
@@ -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: