printk: Clean up syslog_print_all()
authorPetr Mladek <pmladek@suse.com>
Wed, 27 Jun 2018 15:06:41 +0000 (17:06 +0200)
committerPetr Mladek <pmladek@suse.com>
Mon, 9 Jul 2018 11:38:03 +0000 (13:38 +0200)
commit8599dc7dec874b137384714bfe3ddbbf5d4a614e
treec1718cc72e21b75831dfbaf9efb86e8910f2ed79
parent63842c21347ecf4685d6ec008e667e61b0ead6e5
printk: Clean up syslog_print_all()

syslog_print_all() is called twice. Once with a valid buffer
and once just to set the indexes.

Both variants are already handled separately. This patch just
makes it more obvious. It does not change the existing behavior.

Link: http://lkml.kernel.org/r/20180627150641.p56xyy6mdzvnfpig@pathway.suse.cz
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Namit Gupta <gupta.namit@samsung.com>
Cc: linux-kernel@vger.kernel.org
Cc: pankaj.m@samsung.com
Cc: a.sahrawat@samsung.com
Cc: himanshu.m@samsung.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c