vhost/net: virtio 1.0 byte swap
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Oct 2014 11:19:48 +0000 (14:19 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:29 +0000 (12:05 +0200)
commit8b38694a2dc8b18374310df50174f1e4376d6824
tree6eab5ca0936192876d12faa2ef76a1cb04fe5af8
parent3b1bbe89351a8003857aeb5cbef3595f5d0ee609
vhost/net: virtio 1.0 byte swap

I had to add an explicit tag to suppress compiler warning:
gcc isn't smart enough to notice that
len is always initialized since function is called with size > 0.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/vhost/net.c