Signed-off-by: Matthew Hall <mhall at mhcomputing.net> --- examples/vhost/virtio-net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/vhost/virtio-net.c b/examples/vhost/virtio-net.c index 801607a..5e659c7 100644 --- a/examples/vhost/virtio-net.c +++ b/examples/vhost/virtio-net.c @@ -280,8 +280,8 @@ get_config_ll_entry(struct vhost_device_ctx ctx) /* Loop through linked list until the device_fh is found. */ while (ll_dev != NULL) { - if ((ll_dev->dev.device_fh == ctx.fh)) - return ll_dev; + if (ll_dev->dev.device_fh == ctx.fh) + return ll_dev; ll_dev = ll_dev->next; } -- 1.9.1