[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>
This commit is contained in:
Oliver Neukum 2005-06-15 22:26:38 -07:00 коммит произвёл Linus Torvalds
Родитель e41fb09b2f
Коммит 58125f95c6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -520,7 +520,7 @@ static void int_callback(struct urb *u, struct pt_regs *regs)
/* we check the link state to report changes */ /* we check the link state to report changes */
if (kaweth->linkstate != (act_state = ( kaweth->intbuffer[STATE_OFFSET] | STATE_MASK) >> STATE_SHIFT)) { if (kaweth->linkstate != (act_state = ( kaweth->intbuffer[STATE_OFFSET] | STATE_MASK) >> STATE_SHIFT)) {
if (!act_state) if (act_state)
netif_carrier_on(kaweth->net); netif_carrier_on(kaweth->net);
else else
netif_carrier_off(kaweth->net); netif_carrier_off(kaweth->net);