printk: Remove unnecessary kmalloc() from syslog during clear
authorNamit Gupta <gupta.namit@samsung.com>
Wed, 20 Jun 2018 13:56:19 +0000 (19:26 +0530)
committerPetr Mladek <pmladek@suse.com>
Wed, 27 Jun 2018 14:16:28 +0000 (16:16 +0200)
commit63842c21347ecf4685d6ec008e667e61b0ead6e5
tree54ddba7dade806fd43715c11bd4c2816042c3a3e
parent22eceb8bf3e8f1f9b2f566062d06b25807725d7f
printk: Remove unnecessary kmalloc() from syslog during clear

When the request is only for clearing logs, there is no need for
allocation/deallocation. Only the indexes need to be reset and returned.
Rest of the patch is mostly made up of changes because of indention.

Link: http://lkml.kernel.org/r/20180620135951epcas5p3bd2a8f25ec689ca333bce861b527dba2~54wyKcT0_3155531555epcas5p3y@epcas5p3.samsung.com
Cc: linux-kernel@vger.kernel.org
Cc: pankaj.m@samsung.com
Cc: a.sahrawat@samsung.com
Signed-off-by: Namit Gupta <gupta.namit@samsung.com>
Signed-off-by: Himanshu Maithani <himanshu.m@samsung.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk.c