mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-17 10:38:52 +00:00
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>
This commit is contained in:
parent
7b0263cb14
commit
ea2d7fcf35
@ -258,10 +258,6 @@ static RegisterInfoArray *register_init_block(DeviceState *owner,
|
||||
int index = rae[i].addr / data_size;
|
||||
RegisterInfo *r = &ri[index];
|
||||
|
||||
if (data + data_size * index == 0 || !&rae[i]) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Init the register, this will zero it. */
|
||||
object_initialize((void *)r, sizeof(*r), TYPE_REGISTER);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user