diff options
author | araujo <araujo@FreeBSD.org> | 2016-04-22 05:07:59 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-04-22 05:07:59 +0000 |
commit | 5045bf8e78bf1b28c2c9d67343a0ea6f323fc18c (patch) | |
tree | d7a5aa7d7811dd4c0aa848c634820d97abad7303 /usr.sbin | |
parent | 09f48df71ee206eac7a278253eff0b7cfa0e8151 (diff) | |
download | FreeBSD-src-5045bf8e78bf1b28c2c9d67343a0ea6f323fc18c.zip FreeBSD-src-5045bf8e78bf1b28c2c9d67343a0ea6f323fc18c.tar.gz |
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pmccontrol/pmccontrol.c | 2 |
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) |