From: Oliver Neukum Date: Thu, 16 Jun 2005 05:26:38 +0000 (-0700) Subject: [PATCH] fix for kaweth broken by changes in the networking layer X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=58125f95c62a44f12bb71c58ef70f0068d20c7a2;p=linux-beck.git [PATCH] fix for kaweth broken by changes in the networking layer Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c index a9a7cf4a38eb..fd6ff4cb2c62 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);