# HG changeset patch # User Florian Pose # Date 1247658905 0 # Node ID e02f3344a7485a94e6ccd04852176a8acfd9d4d9 # Parent b7881d01f98bfa188aa2af34258ed0b46a08f345 Minor: Removed unnecessary condition. diff -r b7881d01f98b -r e02f3344a748 devices/e100-2.6.20-ethercat.c --- a/devices/e100-2.6.20-ethercat.c Wed Jul 15 09:44:13 2009 +0000 +++ b/devices/e100-2.6.20-ethercat.c Wed Jul 15 11:55:05 2009 +0000 @@ -1637,9 +1637,7 @@ } mii_check_link(&nic->mii); - } - - if (!nic->ecdev) { + /* Software generated interrupt to recover from (rare) Rx * allocation failure. * Unfortunately have to use a spinlock to not re-enable interrupts diff -r b7881d01f98b -r e02f3344a748 devices/e100-2.6.24-ethercat.c --- a/devices/e100-2.6.24-ethercat.c Wed Jul 15 09:44:13 2009 +0000 +++ b/devices/e100-2.6.24-ethercat.c Wed Jul 15 11:55:05 2009 +0000 @@ -1653,9 +1653,7 @@ } mii_check_link(&nic->mii); - } - - if (!nic->ecdev) { + /* Software generated interrupt to recover from (rare) Rx * allocation failure. * Unfortunately have to use a spinlock to not re-enable interrupts diff -r b7881d01f98b -r e02f3344a748 devices/e100-2.6.26-ethercat.c --- a/devices/e100-2.6.26-ethercat.c Wed Jul 15 09:44:13 2009 +0000 +++ b/devices/e100-2.6.26-ethercat.c Wed Jul 15 11:55:05 2009 +0000 @@ -1660,9 +1660,7 @@ } mii_check_link(&nic->mii); - } - - if (!nic->ecdev) { + /* Software generated interrupt to recover from (rare) Rx * allocation failure. * Unfortunately have to use a spinlock to not re-enable interrupts diff -r b7881d01f98b -r e02f3344a748 devices/e100-2.6.28-ethercat.c --- a/devices/e100-2.6.28-ethercat.c Wed Jul 15 09:44:13 2009 +0000 +++ b/devices/e100-2.6.28-ethercat.c Wed Jul 15 11:55:05 2009 +0000 @@ -1660,9 +1660,7 @@ } mii_check_link(&nic->mii); - } - - if (!nic->ecdev) { + /* Software generated interrupt to recover from (rare) Rx * allocation failure. * Unfortunately have to use a spinlock to not re-enable interrupts