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>
This commit is contained in:
Rasmus Villemoes
2014-12-03 00:10:54 +01:00
committed by James Bottomley
parent 3d30079c3a
commit f50332ff25
15 changed files with 45 additions and 45 deletions

View File

@@ -1509,7 +1509,7 @@ static int nsp32_show_info(struct seq_file *m, struct Scsi_Host *host)
data->target[id].offset
);
}
seq_puts(m, "\n");
seq_putc(m, '\n');
}
return 0;
}