]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb08cf1b23a5573b6216bdf898aabe7ec6df6ed98
tree6eab5ca0936192876d12faa2ef76a1cb04fe5af8
parent40f65b6d9907a3d9e7cdd57356b1c413b07c4f01
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