瀏覽代碼

goldfish: goldfish_tty_probe() is not using 'i' any more

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>
Jiri Kosina 10 年之前
父節點
當前提交
0e4f93e501
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/tty/goldfish.c

+ 0 - 1
drivers/tty/goldfish.c

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