mtd: mtdcore: remove unnecessary mtd->resume check
authorBrian Norris <[email protected]>
Fri, 27 Jan 2012 20:39:32 +0000 (12:39 -0800)
committerDavid Woodhouse <[email protected]>
Mon, 26 Mar 2012 23:20:18 +0000 (00:20 +0100)
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 <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
drivers/mtd/mtdcore.c

index aafe0ee9c9f34feecf7a4f99dfcdc231a637d209..5ea22cf357fb422177154c121cdbf92aafc6e1bc 100644 (file)
@@ -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;
 }