[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1254904787-11323-5-git-send-email-alan-jenkins@tuffmail.co.uk>
Date: Wed, 7 Oct 2009 09:39:44 +0100
From: Alan Jenkins <alan-jenkins@...fmail.co.uk>
To: mingo@...hat.com
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
torvalds@...ux-foundation.org,
Alan Jenkins <alan-jenkins@...fmail.co.uk>
Subject: [PATCH 4/7] printk: remove redundant test
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@...fmail.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists