Commit 3ee50141 authored by Brian Norris's avatar Brian Norris Committed by David Woodhouse

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: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 3e341740
...@@ -126,7 +126,7 @@ static int mtd_cls_resume(struct device *dev) ...@@ -126,7 +126,7 @@ static int mtd_cls_resume(struct device *dev)
{ {
struct mtd_info *mtd = dev_get_drvdata(dev); struct mtd_info *mtd = dev_get_drvdata(dev);
if (mtd && mtd->_resume) if (mtd)
mtd_resume(mtd); mtd_resume(mtd);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment