OSDN Git Service

[PATCH] rio: typo in bitwise AND expression.
authorWilly Tarreau <w@1wt.eu>
Thu, 23 Nov 2006 21:15:04 +0000 (22:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Nov 2006 21:15:04 +0000 (22:15 +0100)
commit3ad51322dacba8e9cda8a0b0b89d3079c37c37ea
tree1dde0dde28ea81059364d04f826fb1555528f4f3
parentdef0db71006eb5469a21249a1a5e116fd91e3245
[PATCH] rio: typo in bitwise AND expression.

The line :

    hp->Mode &= !RIO_PCI_INT_ENABLE;

is obviously wrong as RIO_PCI_INT_ENABLE=0x04 and is used as a bitmask
2 lines before. Getting no IRQ would not disable RIO_PCI_INT_ENABLE
but rather RIO_PCI_BOOT_FROM_RAM which equals 0x01.

Obvious fix is to change ! for ~.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Patrick vd Lageweg <patrick@BitWizard.nl>
drivers/char/rio/rio_linux.c