diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-12-02 18:10:54 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2015-02-02 12:57:46 -0500 |
commit | f50332ff2574130903356e800913c1a73cc6c1dc (patch) | |
tree | 89f06badf4e0f42bc26f150d89101efde0dea82e /drivers/scsi/esas2r | |
parent | 3d30079c3a9000504cf71e4e8dd94619070dc4f3 (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/esas2r')
-rw-r--r-- | drivers/scsi/esas2r/esas2r_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c index 7e1c21e6736b..31f8966b2e03 100644 --- a/drivers/scsi/esas2r/esas2r_main.c +++ b/drivers/scsi/esas2r/esas2r_main.c | |||
@@ -749,7 +749,7 @@ int esas2r_show_info(struct seq_file *m, struct Scsi_Host *sh) | |||
749 | if (dev_count == 0) | 749 | if (dev_count == 0) |
750 | seq_puts(m, "none\n"); | 750 | seq_puts(m, "none\n"); |
751 | 751 | ||
752 | seq_puts(m, "\n"); | 752 | seq_putc(m, '\n'); |
753 | return 0; | 753 | return 0; |
754 | 754 | ||
755 | } | 755 | } |