mirror of https://github.com/proxmox/mirror_qemu
register: Remove unnecessary NULL check
This patch fixes CID 1432800 by removing an unnecessary check. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>master
parent
7b0263cb14
commit
ea2d7fcf35
|
@ -258,10 +258,6 @@ static RegisterInfoArray *register_init_block(DeviceState *owner,
|
||||||
int index = rae[i].addr / data_size;
|
int index = rae[i].addr / data_size;
|
||||||
RegisterInfo *r = &ri[index];
|
RegisterInfo *r = &ri[index];
|
||||||
|
|
||||||
if (data + data_size * index == 0 || !&rae[i]) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Init the register, this will zero it. */
|
/* Init the register, this will zero it. */
|
||||||
object_initialize((void *)r, sizeof(*r), TYPE_REGISTER);
|
object_initialize((void *)r, sizeof(*r), TYPE_REGISTER);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue