eal: fix check of all requested CPU features
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 16 Apr 2014 10:50:40 +0000 (06:50 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 17 Apr 2014 22:20:04 +0000 (00:20 +0200)
commit5d529448030493b954165a4f38eeb8d8cf703a84
treecb2ab43c52b60b4f4a2696e47c50e1690857ecb8
parent5578ace03cc8b2a9fb41b2180e58c74804d9ddde
eal: fix check of all requested CPU features

Only the last feature was checked since commit 99f2cdf9ca10
(eal: fix %rbx corruption and simplify the code)

The return code for rte_cpu_get_flag_enabled is only checked on the termination
of the for loop that it is called inside, but should be checked for every
iteration it makes through the for loop.  This is caused by some silly missing
brackets.  Simply add them in

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Reported-by: Pablo De Lara Guarch <pablo.de.lara.guarch@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/common/eal_common_cpuflags.c