eal/linux: remove useless casts in hugepage init
authorDavid Marchand <david.marchand@6wind.com>
Thu, 9 Jul 2015 09:19:22 +0000 (11:19 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Jul 2015 12:20:21 +0000 (14:20 +0200)
commit7392dde0cc9d40022bc5cf1098f2579dc3c0ca80
tree0ac66e0f4d7a12feabd54fd2a7fe01df32449119
parent78615624b020fe14e16eb518d61acbf29cacdd97
eal/linux: remove useless casts in hugepage init

Rather than cast the huge pages number returned by get_num_hugepages, rework
this function so that it returns 0 when something goes wrong.
And no need for casts in log.

Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
lib/librte_eal/linuxapp/eal/eal_hugepage_info.c