summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-22 05:07:59 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-22 05:07:59 +0000
commit5045bf8e78bf1b28c2c9d67343a0ea6f323fc18c (patch)
treed7a5aa7d7811dd4c0aa848c634820d97abad7303
parent09f48df71ee206eac7a278253eff0b7cfa0e8151 (diff)
downloadFreeBSD-src-5045bf8e78bf1b28c2c9d67343a0ea6f323fc18c.zip
FreeBSD-src-5045bf8e78bf1b28c2c9d67343a0ea6f323fc18c.tar.gz
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
-rw-r--r--usr.sbin/pmccontrol/pmccontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c
index c1e2acd..62c074c 100644
--- a/usr.sbin/pmccontrol/pmccontrol.c
+++ b/usr.sbin/pmccontrol/pmccontrol.c
@@ -141,7 +141,7 @@ pmcc_do_enable_disable(struct pmcc_op_list *op_list)
err(EX_OSERR,
"Unable to determine the number of PMCs in CPU %d",
c);
- npmc = t > npmc ? t : npmc;
+ npmc = MAX(t, npmc);
}
if (npmc == 0)
OpenPOWER on IntegriCloud