goldfish: goldfish_tty_probe() is not using 'i' any more
authorJiri Kosina <jkosina@suse.cz>
Tue, 10 Mar 2015 09:45:30 +0000 (10:45 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 10 Mar 2015 09:45:30 +0000 (10:45 +0100)
The only place where 'i' has been used was a dead code that
got removed by 2a2483685a9de ("goldfish: remove unreachable line
of code"). Remove the last reference to the variable as well.

Fixes: 2a2483685a9de ("goldfish: remove unreachable line of code")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/tty/goldfish.c

index e423550c35160b9645c9199f87f527ceef747dbd..d6e332cba3ea714c558f7c72a0afdbca954789dc 100644 (file)
@@ -229,7 +229,6 @@ static int goldfish_tty_probe(struct platform_device *pdev)
 {
        struct goldfish_tty *qtty;
        int ret = -EINVAL;
-       int i;
        struct resource *r;
        struct device *ttydev;
        void __iomem *base;