Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
}
}