char/serial: Fix emptyness handling
commitdffacd4654ec8bf2898aed230852154c6ed755ed
authorDon Slutz <dslutz@verizon.com>
Tue, 18 Mar 2014 16:29:34 +0000 (18 12:29 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Apr 2014 13:51:32 +0000 (7 14:51 +0100)
tree59a035187ef385753a78b0b1175d99ff8cc0f6a7
parentbd7ce902ab2b5e4f5cd53e1e032d89789b6932a8
char/serial: Fix emptyness handling

The commit 88c1ee73d3231c74ff90bcfc084a7589670ec244
char/serial: Fix emptyness check

Still causes extra NULL byte(s) to be sent.

So if the fifo is empty, do not send an extra NULL byte.

Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Don Slutz <dslutz@verizon.com>
Message-id: 1395160174-16006-1-git-send-email-dslutz@verizon.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/char/serial.c