Messages in this thread Patch in this message | | | From | Alan Jenkins <> | Subject | [PATCH 4/7] printk: remove redundant test | Date | Wed, 7 Oct 2009 09:39:44 +0100 |
| |
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@tuffmail.co.uk> --- 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
| |