diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-08 13:15:44 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-25 12:48:12 +0200 |
| commit | a6ab7a98c9a8106cb8ef86cbc88a27fe69963423 (patch) | |
| tree | c0ce9fe28344489fe3ba9c912b2dbb1d91009cf1 /hw/net/imx_fec.c | |
| parent | 63073574e8d5551dc31a30b59830b886e9f9dbfe (diff) | |
| download | focaccia-qemu-a6ab7a98c9a8106cb8ef86cbc88a27fe69963423.tar.gz focaccia-qemu-a6ab7a98c9a8106cb8ef86cbc88a27fe69963423.zip | |
hw/misc/applesmc: Simplify DeviceReset handler
Have applesmc_find_key() return a const pointer. Since the returned buffers are not modified in applesmc_io_data_write(), it is pointless to delete and re-add the keys in the DeviceReset handler. Add them once in DeviceRealize, and discard them in the DeviceUnrealize handler. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20240410180819.92332-1-philmd@linaro.org>
Diffstat (limited to 'hw/net/imx_fec.c')
0 files changed, 0 insertions, 0 deletions