summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2015-07-19 05:37:39 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2015-07-19 05:37:39 +0000
commita346cda69770c3c1ae4b9fb630d1951ddae325fc (patch)
treeb517404bb678fb5057d2993126d26197f36dd1f3 /sys/dev/pci
parentef72a733f1275f47bb041d0b77f95fdf7619d442 (diff)
simplify a triple-deep ternary operation.
ok beck@ krw@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pccbb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/pccbb.c b/sys/dev/pci/pccbb.c
index 7714b1de605..d43a6e0f740 100644
--- a/sys/dev/pci/pccbb.c
+++ b/sys/dev/pci/pccbb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pccbb.c,v 1.93 2015/03/14 03:38:48 jsg Exp $ */
+/* $OpenBSD: pccbb.c,v 1.94 2015/07/19 05:37:38 bcook Exp $ */
/* $NetBSD: pccbb.c,v 1.96 2004/03/28 09:49:31 nakayama Exp $ */
/*
@@ -993,8 +993,8 @@ pccbbintr_function(struct pccbb_softc *sc)
splx(s);
}
- retval = retval == 1 ? 1 :
- retval == 0 ? val : val != 0 ? val : retval;
+ if (retval == 0 || val != 0)
+ retval = val;
}
return retval;