scsi: print single-character strings with seq_putc

Using seq_putc to print a single character saves at least a strlen()
call and a memory access, and may also give a small .text reduction.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Christoph Hellwig <hch@lst.de>
这个提交包含在:
Rasmus Villemoes
2014-12-03 00:10:54 +01:00
提交者 James Bottomley
父节点 3d30079c3a
当前提交 f50332ff25
修改 15 个文件,包含 45 行新增45 行删除

查看文件

@@ -749,7 +749,7 @@ int esas2r_show_info(struct seq_file *m, struct Scsi_Host *sh)
if (dev_count == 0)
seq_puts(m, "none\n");
seq_puts(m, "\n");
seq_putc(m, '\n');
return 0;
}