char/serial: Fix emptyness check
commit88c1ee73d3231c74ff90bcfc084a7589670ec244
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Tue, 11 Feb 2014 06:49:35 +0000 (10 22:49 -0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 15 Feb 2014 12:10:25 +0000 (15 16:10 +0400)
tree6a070491150953d6f76b46fb726817b47d037af9
parent5556332aba80c0579244c4458d3e35f13badd5ed
char/serial: Fix emptyness check

This was guarding against a full fifo rather than an empty fifo when
popping. Fix.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/char/serial.c