From 926fdcd6523d92c4bbca201f1bd3352a394d8d8f Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Thu, 16 Apr 2009 22:49:17 +0200 Subject: [PATCH] --- yaml --- r: 144144 b: refs/heads/master c: 6e60c14810d8da792e418fdcb2110b4185d1b9a2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/microblaze/kernel/early_printk.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 285c49f6f1d3..d2dc162ccabf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 04e3a553e0cbed369e5649c472ac317b6c45215d +refs/heads/master: 6e60c14810d8da792e418fdcb2110b4185d1b9a2 diff --git a/trunk/arch/microblaze/kernel/early_printk.c b/trunk/arch/microblaze/kernel/early_printk.c index 62cc78993f44..4b0f0fdb9ca0 100644 --- a/trunk/arch/microblaze/kernel/early_printk.c +++ b/trunk/arch/microblaze/kernel/early_printk.c @@ -36,7 +36,7 @@ static void early_printk_putc(char c) unsigned retries = 10000; /* read status bit - 0x8 offset */ - while (retries-- && (in_be32(base_addr + 8) & (1 << 3))) + while (--retries && (in_be32(base_addr + 8) & (1 << 3))) ; /* Only attempt the iowrite if we didn't timeout */