vhost: use loop instead of goto
authorHuawei Xie <huawei.xie@intel.com>
Fri, 6 Mar 2015 05:52:43 +0000 (13:52 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 9 Mar 2015 11:46:46 +0000 (12:46 +0100)
commitaee87dd706bcb3e95ef721b79915c84ca31901e8
treeb77d52068c758bde8078fdddc0ae027babe21505
parent31ff0c6a45cfc729fd7003d887fcd2612c3aca6d
vhost: use loop instead of goto

This patch reorder the code a bit to use loop instead of goto.
Besides, remove abudant check 'fd != -1'.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_vhost/vhost_user/fd_man.c