eal/linux: remove useless casts in hugepage init
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 <f28529695cfa9e3e1eb84e7072aa626af4abb18e@6wind.com>
Acked-by: Sergio Gonzalez Monroy <efb28dd1236fe58fb57f933212eddfe89b9da704@intel.com>

tsphillips/dpdk-fork,msune/dpdk,mixja/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,msune/dpdk,venkynv/dpdk-mirror,tsphillips/dpdk-fork,mixja/dpdk,john-mcnamara-intel/dpdk,tsphillips/dpdk-fork,mixja/dpdk,msune/dpdk,msune/dpdk,tsphillips/dpdk-fork,venkynv/dpdk-mirror,venkynv/dpdk-mirror,mixja/dpdk,venkynv/dpdk-mirror