提交 c44185d4 编写于 作者: L Lennert Buytenhek 提交者: Jeff Garzik

[PATCH] enp2611: use 'dev' in link status timer

We assign nds[i] to a local variable 'dev', which we never use
afterwards.  Use the local variable instead.
Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 de287fd5
...@@ -151,12 +151,12 @@ static void enp2611_check_link_status(unsigned long __dummy) ...@@ -151,12 +151,12 @@ static void enp2611_check_link_status(unsigned long __dummy)
dev = nds[i]; dev = nds[i];
status = pm3386_is_link_up(i); status = pm3386_is_link_up(i);
if (status && !netif_carrier_ok(nds[i])) { if (status && !netif_carrier_ok(dev)) {
pm3386_enable_tx(i); pm3386_enable_tx(i);
caleb_enable_tx(i); caleb_enable_tx(i);
netif_carrier_on(nds[i]); netif_carrier_on(dev);
} else if (!status && netif_carrier_ok(nds[i])) { } else if (!status && netif_carrier_ok(dev)) {
netif_carrier_off(nds[i]); netif_carrier_off(dev);
caleb_disable_tx(i); caleb_disable_tx(i);
pm3386_disable_tx(i); pm3386_disable_tx(i);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册