char/serial: serial_ioport_write: Factor out common code
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 3 Jun 2013 05:14:48 +0000 (15:14 +1000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 11 Jun 2013 19:45:44 +0000 (23:45 +0400)
commitb5601df7624b461759651c49ac72a189951780b9
treef0cf9557619d509217923c2edfb127fa244e153c
parent8e8638fa87ff045f5dadec7342301bf10de776ff
char/serial: serial_ioport_write: Factor out common code

These three lines are common to both FIFO and regular mode. Just factor
them out to outside the if rather than replicate the same lines inside
both if and else.

Cc: qemu-trivial@nongnu.org
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/char/serial.c