msi: simplify range checks
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 14:14:56 +0000 (16:14 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 17:01:59 +0000 (19:01 +0200)
commit531a0b82dd0ad352819d4deffe1ecd7f52975fbf
tree37cb9cff3e1d650eaad7c357b4fcfbc393163836
parentf9aebe2ef52ff0dcb733999f57e00a7b430303c6
msi: simplify range checks

config write handlers should be idempotent.
So no need for complex range checks: a simple
one checking that we are touching the relevant capability
will do.

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