diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-21 17:25:48 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-21 17:25:48 +0000 |
commit | f17753593c3ba9fb7226c8026ec2c748f4be658f (patch) | |
tree | 7c55c9f49619a73b65928f60411827d5a181f907 /sys/arch/aviion | |
parent | 353e4422b301ecf3fe6c2a5b8219f3c9f5183425 (diff) |
boot(9): Reduce annoying style diffs
- Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean
context (mostly if (x), or x ? y : z)
- prom_halt() in alpha is confirmed to take int as boolean
Converted by coccinelle. No functional change intended.
Diffstat (limited to 'sys/arch/aviion')
-rw-r--r-- | sys/arch/aviion/aviion/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/aviion/aviion/machdep.c b/sys/arch/aviion/aviion/machdep.c index 0e5bb03e0f9..8735ca2fe32 100644 --- a/sys/arch/aviion/aviion/machdep.c +++ b/sys/arch/aviion/aviion/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.70 2014/07/13 22:53:38 uebayasi Exp $ */ +/* $OpenBSD: machdep.c,v 1.71 2014/07/21 17:25:47 uebayasi Exp $ */ /* * Copyright (c) 2007 Miodrag Vallat. * @@ -321,7 +321,7 @@ boot(int howto) splhigh(); cold = 1; - if (howto & RB_DUMP) + if ((howto & RB_DUMP) != 0) dumpsys(); haltsys: @@ -330,7 +330,7 @@ haltsys: if (mainbus != NULL) config_suspend(mainbus, DVACT_POWERDOWN); - if (howto & RB_HALT) { + if ((howto & RB_HALT) != 0) { printf("System halted.\n\n"); bootstack(); cmmu_shutdown(); |