mtd: nand: vf610: remove useless mtd->ecclayout assignment

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Mar 24 11:59:04 PDT 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=420b4629b5b9d08893c459b55a7a266caa734ebd
Commit:     420b4629b5b9d08893c459b55a7a266caa734ebd
Parent:     f771749e3a4905e631dafa073543ef429c7cc855
Author:     Boris BREZILLON <boris.brezillon at free-electrons.com>
AuthorDate: Mon Dec 7 23:26:04 2015 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 26 10:27:38 2016 -0800

    mtd: nand: vf610: remove useless mtd->ecclayout assignment
    
    The NAND core layer is already taking care of ecclayout propagation. Remove
    this useless assignment.
    
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
    Acked-by: Stefan Agner <stefan at agner.ch>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/vf610_nfc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mtd/nand/vf610_nfc.c b/drivers/mtd/nand/vf610_nfc.c
index 034420f..293feb1 100644
--- a/drivers/mtd/nand/vf610_nfc.c
+++ b/drivers/mtd/nand/vf610_nfc.c
@@ -795,8 +795,6 @@ static int vf610_nfc_probe(struct platform_device *pdev)
 			goto error;
 		}
 
-		/* propagate ecc.layout to mtd_info */
-		mtd->ecclayout = chip->ecc.layout;
 		chip->ecc.read_page = vf610_nfc_read_page;
 		chip->ecc.write_page = vf610_nfc_write_page;
 



More information about the linux-mtd-cvs mailing list