summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/superio/nsc/pc97317/pc97317_early_serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/superio/nsc/pc97317/pc97317_early_serial.c b/src/superio/nsc/pc97317/pc97317_early_serial.c
index c538fa8071..175d490f1b 100644
--- a/src/superio/nsc/pc97317/pc97317_early_serial.c
+++ b/src/superio/nsc/pc97317/pc97317_early_serial.c
@@ -41,7 +41,7 @@ static void pc97317_enable_serial(device_t dev, unsigned iobase)
outb(inb(PM_BASE + 1) | 0x07, PM_BASE + 1);
/* Wait for the clock to stabilise */
- while(!inb(PM_BASE + 1 & 0x80))
+ while(!(inb(PM_BASE + 1) & 0x80))
;
/* Set the base address of the port */