diff options
author | Brian Norris <computersforpeace@gmail.com> | 2012-01-27 20:39:32 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 23:20:18 (GMT) |
commit | 3ee5014185b9041fcb27eef34c83487ce77dd9d3 (patch) | |
tree | 5a85a3563f663ae1e2725969f77dc52bb0525c4b /drivers | |
parent | 3e3417402b3bcaf0faf7995d426b848d7aa17c6e (diff) | |
download | linux-fsl-qoriq-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')
-rw-r--r-- | 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; } |