OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b0263c
)
register: Remove unnecessary NULL check
author
Alistair Francis
<alistair.francis@wdc.com>
Tue, 17 Nov 2020 12:56:32 +0000
(12:56 +0000)
committer
Peter Maydell
<peter.maydell@linaro.org>
Tue, 17 Nov 2020 12:56:32 +0000
(12:56 +0000)
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>
hw/core/register.c
patch
|
blob
|
history
diff --git
a/hw/core/register.c
b/hw/core/register.c
index
31038bd
..
3600ef5
100644
(file)
--- a/
hw/core/register.c
+++ b/
hw/core/register.c
@@
-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);