vhost: replace % with & on data path
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Nov 2015 11:34:44 +0000 (13:34 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Dec 2015 15:28:10 +0000 (17:28 +0200)
commit5fba13b5cf5856e725de35665c37b647323d3b9a
treeddbe8a6688700a93fd7a53d7b16444a40e82729d
parent55564a02b2ad4dab0c29fd9391d5118592c7fdc8
vhost: replace % with & on data path

We know vring num is a power of 2, so use &
to mask the high bits.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c