From: Brian Norris Date: Fri, 27 Jan 2012 20:39:32 +0000 (-0800) Subject: mtd: mtdcore: remove unnecessary mtd->resume check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ee5014185b9041fcb27eef34c83487ce77dd9d3;p=mv-sheeva.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index aafe0ee9c9f..5ea22cf357f 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; }