summaryrefslogtreecommitdiffstats
path: root/drivers/usb/net/kaweth.c
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2005-06-15 22:26:38 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-16 09:02:59 -0700
commit58125f95c62a44f12bb71c58ef70f0068d20c7a2 (patch)
tree633880e297915359244176619b18838bee45769e /drivers/usb/net/kaweth.c
parente41fb09b2fa15db095d3ee981299f488d7b48dfe (diff)
downloadop-kernel-dev-58125f95c62a44f12bb71c58ef70f0068d20c7a2.zip
op-kernel-dev-58125f95c62a44f12bb71c58ef70f0068d20c7a2.tar.gz
[PATCH] fix for kaweth broken by changes in the networking layer
Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/usb/net/kaweth.c')
-rw-r--r--drivers/usb/net/kaweth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c
index a9a7cf4..fd6ff4c 100644
--- a/drivers/usb/net/kaweth.c
+++ b/drivers/usb/net/kaweth.c
@@ -520,7 +520,7 @@ static void int_callback(struct urb *u, struct pt_regs *regs)
/* we check the link state to report changes */
if (kaweth->linkstate != (act_state = ( kaweth->intbuffer[STATE_OFFSET] | STATE_MASK) >> STATE_SHIFT)) {
- if (!act_state)
+ if (act_state)
netif_carrier_on(kaweth->net);
else
netif_carrier_off(kaweth->net);
OpenPOWER on IntegriCloud