Skip to content

Commit

Permalink
[PATCH] fix for kaweth broken by changes in the networking layer
Browse files Browse the repository at this point in the history
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Oliver Neukum authored and Linus Torvalds committed Jun 16, 2005
1 parent e41fb09 commit 58125f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/net/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58125f9

Please sign in to comment.