examples/vhost: fix lcore initialization
authorYong Wang <wang.yong19@zte.com.cn>
Wed, 11 Jan 2017 08:59:46 +0000 (03:59 -0500)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 17 Jan 2017 08:20:18 +0000 (09:20 +0100)
commitb3bee7d87d4abd01dd7a1d4163f2994f31487343
tree4bf004e665b4e11142ca089ab924e70d99773fdc
parent12ee45a3620b30a99d21cbf5a25d787f088f0de9
examples/vhost: fix lcore initialization

when "TAILQ_INIT()" was added to the loop of "for (lcore_id = 0; ...)"
statement, the assignment to "lcore_ids" was removed out of the loop.
It changed the original initialization of "lcore_ids".

Fix it by introducing two braces.

Fixes: 45657a5c6861 ("examples/vhost: use tailq to link vhost devices")
Cc: stable@dpdk.org
Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
examples/vhost/main.c