mtd: mtdcore: remove unnecessary mtd->resume check

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Mar 26 20:59:06 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=3ee5014185b9041fcb27eef34c83487ce77dd9d3
Commit:     3ee5014185b9041fcb27eef34c83487ce77dd9d3
Parent:     3e3417402b3bcaf0faf7995d426b848d7aa17c6e
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Fri Jan 27 12:39:32 2012 -0800
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Tue Mar 27 00:20:18 2012 +0100

    mtd: mtdcore: remove unnecessary mtd->resume check
    
    We don't need to to check for mtd->resume before calling mtd_resume().
    mtd_resume() should take care of that.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/mtdcore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index aafe0ee..5ea22cf 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -126,7 +126,7 @@ static int mtd_cls_resume(struct device *dev)
 {
 	struct mtd_info *mtd = dev_get_drvdata(dev);
 
-	if (mtd && mtd->_resume)
+	if (mtd)
 		mtd_resume(mtd);
 	return 0;
 }



More information about the linux-mtd-cvs mailing list