[PATCH v2] ttyprintk: optimize tpk_close flush code

2020-11-16 Thread Junyong Sun
tpk_printk(NULL,0) do nothing but call tpk_flush to flush buffer, so why don't use tpk_flush diretcly? this is a small optimization. Signed-off-by: Junyong Sun --- changes in v2: - rm the flush comment as tpk_flush makes it obvious. --- --- drivers/char/ttyprintk.c | 3 +-- 1 file chang

[PATCH] ttyprintk: optimize tpk_close flush code

2020-11-03 Thread Junyong Sun
tpk_printk(NULL,0) do nothing but call tpk_flush to flush buffer, so why don't use tpk_flush diretcly? this is a small optimization. Signed-off-by: Junyong Sun --- drivers/char/ttyprintk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/ttyprintk.c b/dr