early_printk: Simplify the code

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2010-05-30 23:15:28 +04:00
committed by Will Deacon
parent 5b9d0b58c0
commit f2d8dc88ea
+4 -4
View File
@@ -14,11 +14,11 @@ static int early_serial_base = 0x3f8; /* ttyS0 */
static bool early_serial_txr_out(struct kvm *self, uint16_t port, void *data, int size, uint32_t count)
{
char *p = data;
uint32_t i;
int i;
for (i = 0; i < count; i++) {
fprintf(stderr, "%c", *p);
p += size;
while (count--) {
for (i = 0; i < size; i++)
fprintf(stderr, "%c", *p++);
}
fflush(stderr);