vhost: fix signed/unsigned comparison
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jan 2011 08:03:20 +0000 (10:03 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Jan 2011 08:03:39 +0000 (10:03 +0200)
To detect that a sequence number is done, we are doing math on unsigned
integers so the result is unsigned too. Not what was intended for the <=
comparison. The result is user stuck forever in flush call.
Convert to int to fix this.

Further, get rid of ({}) to make code clearer.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

No differences found