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: NJes Sorensen <Jes.Sorensen@redhat.com> Acked-by: NCam Macdonell <cam@cs.ualberta.ca> Signed-off-by: NBlue Swirl <blauwirbel@gmail.com> (cherry picked from commit 1b27d7a1)
Showing
想要评论请 注册 或 登录