eal: fix detection of duplicate option register
authorGaetan Rivet <gaetan.rivet@6wind.com>
Mon, 17 Dec 2018 09:25:59 +0000 (10:25 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 19 Dec 2018 23:01:28 +0000 (00:01 +0100)
commitc9b413c3b1cfb52740acb2a0fbf1b73acdb93646
tree89b1150de62343288bfcb23194e6d1ebb9efb08e
parente3b090f3daded540ab37bce69d0ce4ec730dab3d
eal: fix detection of duplicate option register

Missing brackets around the if means that the loop will end at
its first iteration.

Fixes: 2395332798d0 ("eal: add option register infrastructure")
Cc: stable@dpdk.org
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_eal/common/rte_option.c