mtd: brcmnand: drop unnecessary initialization

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


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5e65d48b6049e090fdc57490db9d797124f2a9eb
Commit:     5e65d48b6049e090fdc57490db9d797124f2a9eb
Parent:     57dd990c5e9c4664f3db4cba271c808ca7adf9e5
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu May 28 15:07:45 2015 -0700
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jun 16 18:50:51 2015 -0700

    mtd: brcmnand: drop unnecessary initialization
    
    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 a48ad49..fddb795 100644
--- a/drivers/mtd/nand/brcmnand/brcmnand.c
+++ b/drivers/mtd/nand/brcmnand/brcmnand.c
@@ -1887,7 +1887,7 @@ static int brcmnand_init_cs(struct brcmnand_host *host)
 	struct platform_device *pdev = host->pdev;
 	struct mtd_info *mtd;
 	struct nand_chip *chip;
-	int ret = 0;
+	int ret;
 	struct mtd_part_parser_data ppdata = { .of_node = dn };
 
 	ret = of_property_read_u32(dn, "reg", &host->cs);



More information about the linux-mtd-cvs mailing list