Revision b3a21988
b/hw/i2c.c | ||
---|---|---|
85 | 85 |
i2c_slave *slave = NULL; |
86 | 86 |
|
87 | 87 |
QLIST_FOREACH(qdev, &bus->qbus.children, sibling) { |
88 |
slave = I2C_SLAVE_FROM_QDEV(qdev); |
|
89 |
if (slave->address == address) |
|
88 |
i2c_slave *candidate = I2C_SLAVE_FROM_QDEV(qdev); |
|
89 |
if (candidate->address == address) { |
|
90 |
slave = candidate; |
|
90 | 91 |
break; |
92 |
} |
|
91 | 93 |
} |
92 | 94 |
|
93 | 95 |
if (!slave) |
Also available in: Unified diff