Browse Source

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@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Brian Norris 13 years ago
parent
commit
3ee5014185
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/mtd/mtdcore.c

+ 1 - 1
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;
 }