qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

scsi/esp-pci: add g_assert() for fix clang analyzer warning in esp_pci_io_write()

Clang static code analyzer show warning:
hw/scsi/esp-pci.c:198:9: warning: Value stored to 'size' is never read
size = 4;
^ ~

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200325025919.21316-2-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

Chen Qun and committed by
Laurent Vivier
d58f8860 2ef486e7

+1
+1
hw/scsi/esp-pci.c
··· 197 197 addr &= ~3; 198 198 size = 4; 199 199 } 200 + g_assert(size >= 4); 200 201 201 202 if (addr < 0x40) { 202 203 /* SCSI core reg */