summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-01-28 00:39:32 +0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-03-27 03:20:18 +0400
commit3ee5014185b9041fcb27eef34c83487ce77dd9d3 (patch)
tree5a85a3563f663ae1e2725969f77dc52bb0525c4b /drivers/mtd/mtdcore.c
parent3e3417402b3bcaf0faf7995d426b848d7aa17c6e (diff)
downloadlinux-3ee5014185b9041fcb27eef34c83487ce77dd9d3.tar.xz
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;
}