[PATCH 4/7] printk: remove redundant test
From: Alan Jenkins
Date: Wed Oct 07 2009 - 04:42:54 EST
print_token() cannot change the value of p. So there is no need to test
*p again after calling print_token().
Signed-off-by: Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx>
---
kernel/printk.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/kernel/printk.c b/kernel/printk.c
index 69f717a..1714435 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -772,9 +772,6 @@ asmlinkage int vprintk(const char *fmt, va_list args)
/* Always output the token */
printk_token(current_log_level);
-
- if (!*p)
- break;
}
emit_log_char(*p);
--
1.6.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/