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

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 <>
Signed-off-by: default avatarArtem Bityutskiy <>
Signed-off-by: default avatarDavid Woodhouse <>
parent 3e341740
......@@ -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)
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment