summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2015-07-19 05:37:38 +0000
committerbcook <bcook@openbsd.org>2015-07-19 05:37:38 +0000
commit34d054530cf38ef4156dda1018e6250be20cc5f6 (patch)
treee80879caf13c9c849a36881f5dd21e262a1494e7
parentFor the completeness of HSTS, add the non-standard preload option. (diff)
downloadwireguard-openbsd-34d054530cf38ef4156dda1018e6250be20cc5f6.tar.xz
wireguard-openbsd-34d054530cf38ef4156dda1018e6250be20cc5f6.zip
simplify a triple-deep ternary operation.
ok beck@ krw@
-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;