vhost: remove an incorrect assert
commitcb4b4fde82b064472c13fb9d983ca36a70e560aa
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Aug 2011 12:24:41 +0000 (3 15:24 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 3 Aug 2011 15:00:53 +0000 (3 18:00 +0300)
tree6209962580fb36edd2696fe8faa3df0314c5ef60
parent43e86c8f5b6d9f6279e20dede4e1f7829bdc43b7
vhost: remove an incorrect assert

The 'to' can go negative when the first region gets removed
(it gets incremented by to 0 immediately afterward), which
makes the assertion fail. Nothing breaks if
to < 0 here so just remove the assert.

Tested-by: David Ahern <daahern@cisco.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/vhost.c