eal/arm64: remove the braces in memory barrier macros
authorJia He <jia.he@hxt-semitech.com>
Mon, 22 Jan 2018 04:41:26 +0000 (20:41 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jan 2018 14:14:53 +0000 (15:14 +0100)
commit59a3cae5305816b3739b4197d277f9455af53b9f
tree05dfb291b9ff3daac9e3dc38395176dc7109a1f6
parent1742c2d9fab07e66209f2d14e7daa50829fc4423
eal/arm64: remove the braces in memory barrier macros

for the code as follows:
if (condition)
rte_smp_rmb();
else
rte_smp_wmb();
Without this patch, compiler will report this error:
error: 'else' without a previous 'if'

Fixes: 84733fd0d75e ("eal/arm64: fix memory barrier definition")
Cc: stable@dpdk.org
Signed-off-by: Jia He <jia.he@hxt-semitech.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
lib/librte_eal/common/include/arch/arm/rte_atomic_64.h