[dpdk-dev] [PATCH] net/virtio-user: Fix missing brackets in if condition

Thomas Monjalon thomas.monjalon at 6wind.com
Fri Jul 15 22:18:48 CEST 2016


2016-07-12 20:11, Yuanhan Liu:
> On Tue, Jul 12, 2016 at 11:30:25AM +0200, Maxime Coquelin wrote:
> > The error is reported using test build script:
> > 
> > $ scripts/test-build.sh x86_64-native-linuxapp-gcc
> > ...
> > drivers/net/virtio/virtio_user_ethdev.c: In function ‘virtio_user_pmd_devinit’:
> > 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")
> > 
> > Cc: Jianfeng Tan <jianfeng.tan at intel.com>
> > Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> 
> Acked-by: Yuanhan Liu <yuanhan.liu at linux.intel.com>
> 
> Thanks for the fix.

Applied, thanks


More information about the dev mailing list