power: replace unsigned -1 with unsigned maximum
authorTyler Retzlaff <roretzla@linux.microsoft.com>
Tue, 16 Mar 2021 00:13:31 +0000 (17:13 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 09:36:12 +0000 (11:36 +0200)
commit1cd3ce09534e035b3b3cfe0475adee656971fd8c
treec22fc8655a2d5e21fd134f5a41f53ab4cd5743c0
parent5535bbadcbc035923044de8822d5d47928ac94a7
power: replace unsigned -1 with unsigned maximum

Use UINT64_MAX instead of -1ULL.

Some compilers generate a warning when applying a '-' to
an unsigned literal so avoid this by initializing with
unsigned preprocessor definition.

Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_power/rte_power_pmd_mgmt.c