Skip to content

Commit

Permalink
mtd: mtdcore: remove unnecessary mtd->resume check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brian Norris authored and David Woodhouse committed Mar 26, 2012
1 parent 3e34174 commit 3ee5014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/mtdcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3ee5014

Please sign in to comment.