mtd: mtdcore: remove unnecessary mtd->resume check
authorBrian Norris <computersforpeace@gmail.com>
Fri, 27 Jan 2012 20:39:32 +0000 (12:39 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:20:18 +0000 (00:20 +0100)
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@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c

index aafe0ee9c9f34feecf7a4f99dfcdc231a637d209..5ea22cf357fb422177154c121cdbf92aafc6e1bc 100644 (file)
@@ -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;
 }