lkml.org 
[lkml]   [2009]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/7] printk: remove redundant test
Date
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


\
 
 \ /
  Last update: 2009-10-07 10:59    [W:0.068 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site