summaryrefslogtreecommitdiff
path: root/src/superio/fintek/f71872
diff options
context:
space:
mode:
Diffstat (limited to 'src/superio/fintek/f71872')
-rw-r--r--src/superio/fintek/f71872/superio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/superio/fintek/f71872/superio.c b/src/superio/fintek/f71872/superio.c
index f1a27e470d..0e1f4d0169 100644
--- a/src/superio/fintek/f71872/superio.c
+++ b/src/superio/fintek/f71872/superio.c
@@ -79,7 +79,7 @@ static void f71872_pnp_enable(device_t dev)
{
pnp_enter_conf_state(dev);
pnp_set_logical_device(dev);
- (dev->enabled) ? pnp_set_enable(dev, 1) : pnp_set_enable(dev, 0);
+ pnp_set_enable(dev, !!dev->enabled);
pnp_exit_conf_state(dev);
}