aboutsummaryrefslogtreecommitdiff
path: root/hw/char
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2014-01-06 10:16:40 +0000
committerPeter Maydell <peter.maydell@linaro.org>2014-01-08 19:07:21 +0000
commit1e5d8cacb7fe509aa793ad844105fbc4fe02e015 (patch)
treec59649956903f730511a6c5374ad0442c79c4557 /hw/char
parent86baecc3e43510c3bef03a0d7e947221823864d3 (diff)
downloadqemu-1e5d8cacb7fe509aa793ad844105fbc4fe02e015.zip
qemu-1e5d8cacb7fe509aa793ad844105fbc4fe02e015.tar.gz
qemu-1e5d8cacb7fe509aa793ad844105fbc4fe02e015.tar.bz2
char/cadence_uart: Delete redundant rx rst logic
uart_rx_reset() called immediately above already does this. Remove. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Message-id: 05e30826496cf2579084ed801ac0b2c0d0a3071f.1388626249.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/char')
-rw-r--r--hw/char/cadence_uart.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c
index be32126..8a9ef81 100644
--- a/hw/char/cadence_uart.c
+++ b/hw/char/cadence_uart.c
@@ -438,8 +438,6 @@ static void cadence_uart_reset(DeviceState *dev)
uart_rx_reset(s);
uart_tx_reset(s);
- s->rx_count = 0;
- s->rx_wpos = 0;
uart_update_status(s);
}