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