diff options
author | Philippe Mathieu-Daudé | 2021-01-29 14:23:16 +0100 |
---|---|---|
committer | Peter Maydell | 2021-02-02 18:00:54 +0100 |
commit | 9c431a43a62255402a6bbe9a01b0464e73b30fe4 (patch) | |
tree | 95b72355eb17fa236bf729656e99f8402a4c914f | |
parent | hw/ssi: imx_spi: Remove imx_spi_update_irq() in imx_spi_reset() (diff) | |
download | qemu-9c431a43a62255402a6bbe9a01b0464e73b30fe4.tar.gz qemu-9c431a43a62255402a6bbe9a01b0464e73b30fe4.tar.xz qemu-9c431a43a62255402a6bbe9a01b0464e73b30fe4.zip |
hw/ssi: imx_spi: Remove pointless variable initialization
'burst_length' is cleared in imx_spi_reset(), which is called
after imx_spi_realize(). Remove the initialization to simplify.
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Message-id: 20210129132323.30946-4-bmeng.cn@gmail.com
Message-Id: <20210115153049.3353008-3-f4bug@amsat.org>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/ssi/imx_spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/ssi/imx_spi.c b/hw/ssi/imx_spi.c index 4d488b159a..8fb3c9b6d1 100644 --- a/hw/ssi/imx_spi.c +++ b/hw/ssi/imx_spi.c @@ -434,8 +434,6 @@ static void imx_spi_realize(DeviceState *dev, Error **errp) sysbus_init_irq(SYS_BUS_DEVICE(dev), &s->cs_lines[i]); } - s->burst_length = 0; - fifo32_create(&s->tx_fifo, ECSPI_FIFO_SIZE); fifo32_create(&s->rx_fifo, ECSPI_FIFO_SIZE); } |