net: eepro autoport typo
Subsystems (2)
PATCH 1/1 net: eepro autoport typo
Found by sparse dubious !x & y warning...hidden in the GetBit macro why !Word doesn't make any sense.
Signed-off-by Harvey Harrison <[email protected]>
--- drivers/net/eepro.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/eepro.c +1 -1
@@ -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)); }
Signature · 1 line
1.5.5.1.270.g89765
Jeff Garzik
AppliedQuoted 13 lines · Harvey Harrison
Found by sparse dubious !x & y warning...hidden in the GetBit macro why !Word doesn't make any sense.
Signed-off-by Harvey Harrison <[email protected]>--- drivers/net/eepro.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/net/eepro.c +0
-0
drivers/net/eepro.c static void __init printEEPROMInfo(struct net_device *dev) · line 637
Quoted 6 lines
drivers/net/eepro.c +1
-1@@ -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));
applied