mtd: brcmnand: remove double new line from print

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 23 10:59:04 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=802041247a0abbeaf1dddb8a8d56f491762ae357
Commit:     802041247a0abbeaf1dddb8a8d56f491762ae357
Parent:     2ddd8db90a22fc4ac708cd8497ed5e46b7f24d49
Author:     Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun May 17 17:41:00 2015 +0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Mon May 18 11:01:58 2015 -0700

    mtd: brcmnand: remove double new line from print
    
    The caller already adds a new line and in the other cases there is no
    new line added.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/brcmnand/brcmnand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/brcmnand/brcmnand.c b/drivers/mtd/nand/brcmnand/brcmnand.c
index a780768..bae30ab 100644
--- a/drivers/mtd/nand/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/brcmnand/brcmnand.c
@@ -1765,7 +1765,7 @@ static void brcmnand_print_cfg(char *buf, struct brcmnand_cfg *cfg)
 	else if (cfg->sector_size_1k)
 		sprintf(buf, ", BCH-%u (1KiB sector)", cfg->ecc_level << 1);
 	else
-		sprintf(buf, ", BCH-%u\n", cfg->ecc_level);
+		sprintf(buf, ", BCH-%u", cfg->ecc_level);
 }
 
 /*



More information about the linux-mtd-cvs mailing list