]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
net: eepro autoport typo
authorHarvey Harrison <harvey.harrison@gmail.com>
Sun, 27 Apr 2008 06:44:03 +0000 (23:44 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 29 Apr 2008 05:56:01 +0000 (01:56 -0400)
Found by sparse dubious !x & y warning...hidden in the GetBit macro
why !Word doesn't make any sense.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/eepro.c

index 83bda6ccde98ef1fcb855be404cfd8fa7445afaf..56f50491a453f444412f15ee25b6179b3fd17684 100644 (file)
@@ -633,7 +633,7 @@ static void __init printEEPROMInfo(struct net_device *dev)
                printk(KERN_DEBUG " PC: %d\n", GetBit(Word,ee_PC));
                printk(KERN_DEBUG " TPE/AUI: %d\n", GetBit(Word,ee_TPE_AUI));
                printk(KERN_DEBUG " Jabber: %d\n", GetBit(Word,ee_Jabber));
-               printk(KERN_DEBUG " AutoPort: %d\n", GetBit(!Word,ee_Jabber));
+               printk(KERN_DEBUG " AutoPort: %d\n", !GetBit(Word,ee_AutoPort));
                printk(KERN_DEBUG " Duplex: %d\n", GetBit(Word,ee_Duplex));
        }