From: David Marchand Date: Thu, 9 Jul 2015 09:19:22 +0000 (+0200) Subject: eal/linux: remove useless casts in hugepage init X-Git-Tag: spdx-start~8833 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7392dde0cc9d40022bc5cf1098f2579dc3c0ca80;hp=7392dde0cc9d40022bc5cf1098f2579dc3c0ca80;p=dpdk.git 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 Acked-by: Sergio Gonzalez Monroy ---