summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-01-27 21:39:32 +0100
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 01:20:18 +0200
commit3ee5014185b9041fcb27eef34c83487ce77dd9d3 (patch)
tree5a85a3563f663ae1e2725969f77dc52bb0525c4b /drivers/mtd/mtdcore.c
parentjffs2: fix typo in scan.c (diff)
downloadlinux-3ee5014185b9041fcb27eef34c83487ce77dd9d3.tar.xz
linux-3ee5014185b9041fcb27eef34c83487ce77dd9d3.zip
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>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
-rw-r--r--drivers/mtd/mtdcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index aafe0ee9c9f3..5ea22cf357fb 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;
}