Use macro MAX() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-22 05:07:59 +00:00
parent 7cd9b96b7a
commit a301ee66ba

View File

@ -141,7 +141,7 @@ pmcc_do_enable_disable(struct pmcc_op_list *op_list)
err(EX_OSERR, err(EX_OSERR,
"Unable to determine the number of PMCs in CPU %d", "Unable to determine the number of PMCs in CPU %d",
c); c);
npmc = t > npmc ? t : npmc; npmc = MAX(t, npmc);
} }
if (npmc == 0) if (npmc == 0)