[dpdk-dev,2/4] virtio-net.c: incorrect parens around equality check
Commit Message
Signed-off-by: Matthew Hall <mhall@mhcomputing.net>
---
examples/vhost/virtio-net.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Hi Matthew,
I think that patches 1, 3 and 4 need some rework but this one is valid
and has no relation with other ones in the serie. So it can be integrated now.
2014-07-20 20:47, Matthew Hall:
> --- 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;
> }
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Applied for version 1.7.1.
Thanks
On Tue, Jul 22, 2014 at 03:14:51PM +0200, Thomas Monjalon wrote:
> Hi Matthew,
>
> I think that patches 1, 3 and 4 need some rework but this one is valid
> and has no relation with other ones in the serie. So it can be integrated now.
Great thanks!
I'll work a bit more on the others when I've got time.
Discovered them during a weekend Open Source project.
Matthew.
@@ -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;
}