svn commit: r298447 - head/usr.sbin/pmccontrol
Marcelo Araujo
araujo at FreeBSD.org
Fri Apr 22 05:08:01 UTC 2016
Author: araujo
Date: Fri Apr 22 05:07:59 2016
New Revision: 298447
URL: https://svnweb.freebsd.org/changeset/base/298447
Log:
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
Modified:
head/usr.sbin/pmccontrol/pmccontrol.c
Modified: head/usr.sbin/pmccontrol/pmccontrol.c
==============================================================================
--- head/usr.sbin/pmccontrol/pmccontrol.c Fri Apr 22 05:01:43 2016 (r298446)
+++ head/usr.sbin/pmccontrol/pmccontrol.c Fri Apr 22 05:07:59 2016 (r298447)
@@ -141,7 +141,7 @@ pmcc_do_enable_disable(struct pmcc_op_li
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)
More information about the svn-src-head
mailing list