summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ips.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-12-03 00:10:54 +0100
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 09:57:46 -0800
commitf50332ff2574130903356e800913c1a73cc6c1dc (patch)
tree89f06badf4e0f42bc26f150d89101efde0dea82e /drivers/scsi/ips.c
parent3d30079c3a9000504cf71e4e8dd94619070dc4f3 (diff)
downloadop-kernel-dev-f50332ff2574130903356e800913c1a73cc6c1dc.zip
op-kernel-dev-f50332ff2574130903356e800913c1a73cc6c1dc.tar.gz
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>
Diffstat (limited to 'drivers/scsi/ips.c')
-rw-r--r--drivers/scsi/ips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index 615a9a3..7542f11 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -2137,7 +2137,7 @@ ips_host_info(ips_ha_t *ha, struct seq_file *m)
seq_printf(m, "\tCurrent Active PT Commands : %d\n",
ha->num_ioctl);
- seq_puts(m, "\n");
+ seq_putc(m, '\n');
return 0;
}
OpenPOWER on IntegriCloud