hw/ivshmem.c don't check for negative values on unsigned data types
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 30 Aug 2010 10:31:33 +0000 (12:31 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Sep 2010 09:52:25 +0000 (09:52 +0000)
commite97cff45845ce479198e6b2dff2de2340e9e98b6
treec296b1ef7ee545603c3b7c144d2bf194ca672dca
parent2ee2c54a0dd497a9a22d1fd0f655b1ccfc195b50
hw/ivshmem.c don't check for negative values on unsigned data types

There is no need to check for dest < 0 or vector >= 0 as both are
uint16_t.

This should fix problems with broken build with aggressive compiler
flags. Reported by Xudong Hao <xudong.hao@intel.com>

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Acked-by: Cam Macdonell <cam@cs.ualberta.ca>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/ivshmem.c