]> git.baikalelectronics.ru Git - kernel.git/commit
printk: do not compute the size of the message twice
authorPetr Mladek <pmladek@suse.cz>
Thu, 3 Apr 2014 21:48:43 +0000 (14:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:07 +0000 (16:21 -0700)
commit7ee1e751585de7f6f86aec977b772b477821f2df
tree4b3857ee351732d6c6da99c246cd6b8ee1fb1a7f
parente20b417b0ca6756be897b93f481ca31886fd0399
printk: do not compute the size of the message twice

This is just a tiny optimization.  It removes duplicate computation of
the message size.

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Kay Sievers <kay@vrfy.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk/printk.c