]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
watchdog: sch311x_wdt: fix printk condition
authorDan Carpenter <error27@gmail.com>
Wed, 23 Feb 2011 20:26:01 +0000 (23:26 +0300)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 14 Mar 2011 10:40:21 +0000 (10:40 +0000)
"==" has higher precedence than "&".  Since
if (sch311x_sio_inb(sio_config_port, 0x30) & (0x01 == 0)) is always
false the message is never printed.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sch311x_wdt.c

index 7b687e9497f057949ceefe1ed32b25258bc581aa..b61ab1c54293552af1005e508a9311053efee1a6 100644 (file)
@@ -508,7 +508,7 @@ static int __init sch311x_detect(int sio_config_port, unsigned short *addr)
        sch311x_sio_outb(sio_config_port, 0x07, 0x0a);
 
        /* Check if Logical Device Register is currently active */
-       if (sch311x_sio_inb(sio_config_port, 0x30) & 0x01 == 0)
+       if ((sch311x_sio_inb(sio_config_port, 0x30) & 0x01) == 0)
                printk(KERN_INFO PFX "Seems that LDN 0x0a is not active...\n");
 
        /* Get the base address of the runtime registers */