Skip to content

Commit

Permalink
char/cadence_uart: Delete redundant rx rst logic
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pete128 authored and pm215 committed Jan 7, 2014
1 parent 9e263f7 commit a33f37a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hw/char/cadence_uart.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit a33f37a

Please sign in to comment.