From 3ee5014185b9041fcb27eef34c83487ce77dd9d3 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Fri, 27 Jan 2012 12:39:32 -0800 Subject: [PATCH] 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 --- drivers/mtd/mtdcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index aafe0ee9c9f3..5ea22cf357fb 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; }