diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2005-11-23 06:49:35 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:25:26 -0500 |
commit | c44185d4dcb92384c22e6c01dc09c25adae36a82 (patch) | |
tree | 7a38ba1faaf15caeed9ae41d89b3fa44caa8fbe9 | |
parent | de287fd596e2e9ea9a29c397322d0a8b8a470cd1 (diff) |
[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: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r-- | drivers/net/ixp2000/enp2611.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ixp2000/enp2611.c b/drivers/net/ixp2000/enp2611.c index f0cc23d423ef..bc29dbeec318 100644 --- a/drivers/net/ixp2000/enp2611.c +++ b/drivers/net/ixp2000/enp2611.c | |||
@@ -151,12 +151,12 @@ static void enp2611_check_link_status(unsigned long __dummy) | |||
151 | dev = nds[i]; | 151 | dev = nds[i]; |
152 | 152 | ||
153 | status = pm3386_is_link_up(i); | 153 | status = pm3386_is_link_up(i); |
154 | if (status && !netif_carrier_ok(nds[i])) { | 154 | if (status && !netif_carrier_ok(dev)) { |
155 | pm3386_enable_tx(i); | 155 | pm3386_enable_tx(i); |
156 | caleb_enable_tx(i); | 156 | caleb_enable_tx(i); |
157 | netif_carrier_on(nds[i]); | 157 | netif_carrier_on(dev); |
158 | } else if (!status && netif_carrier_ok(nds[i])) { | 158 | } else if (!status && netif_carrier_ok(dev)) { |
159 | netif_carrier_off(nds[i]); | 159 | netif_carrier_off(dev); |
160 | caleb_disable_tx(i); | 160 | caleb_disable_tx(i); |
161 | pm3386_disable_tx(i); | 161 | pm3386_disable_tx(i); |
162 | } | 162 | } |