summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/wd33c93.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2014-12-02 18:10:54 -0500
committerJames Bottomley <JBottomley@Parallels.com>2015-02-02 12:57:46 -0500
commitf50332ff2574130903356e800913c1a73cc6c1dc (patch)
tree89f06badf4e0f42bc26f150d89101efde0dea82e /drivers/scsi/wd33c93.c
parent3d30079c3a9000504cf71e4e8dd94619070dc4f3 (diff)
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/wd33c93.c')
-rw-r--r--drivers/scsi/wd33c93.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/wd33c93.c b/drivers/scsi/wd33c93.c
index 6e041a782d21..9e09da412b92 100644
--- a/drivers/scsi/wd33c93.c
+++ b/drivers/scsi/wd33c93.c
@@ -2192,7 +2192,7 @@ wd33c93_show_info(struct seq_file *m, struct Scsi_Host *instance)
2192 cmd = (struct scsi_cmnd *) cmd->host_scribble; 2192 cmd = (struct scsi_cmnd *) cmd->host_scribble;
2193 } 2193 }
2194 } 2194 }
2195 seq_puts(m, "\n"); 2195 seq_putc(m, '\n');
2196 spin_unlock_irq(&hd->lock); 2196 spin_unlock_irq(&hd->lock);
2197#endif /* PROC_INTERFACE */ 2197#endif /* PROC_INTERFACE */
2198 return 0; 2198 return 0;