net/virtio-user: fix build with gcc 6
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 12 Jul 2016 09:30:25 +0000 (11:30 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 Jul 2016 20:15:21 +0000 (22:15 +0200)
commit9cca159efa1ebe0463a2805d309394c9eb1b532a
treea1383370c54e62ad935fa92513b8f197a7e7146d
parentacbff5c67ea77e7db50614d5ddaa4dfb3deccde2
net/virtio-user: fix build with gcc 6

The error is reported using test build script:

$ scripts/test-build.sh x86_64-native-linuxapp-gcc
...
drivers/net/virtio/virtio_user_ethdev.c:345:2: error:
  this ‘if’ clause does not guard... [-Werror=misleading-indentation]
  if (rte_kvargs_count(kvlist, VIRTIO_USER_ARG_PATH) == 1)
    ^~

Fixes: 404bd6bfe360 ("net/virtio-user: fix return value not checked")

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/virtio/virtio_user_ethdev.c