mtd: mtdcore: remove unnecessary mtd->resume check
PATCH 1/1 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 <[email protected]>
--- drivers/mtd/mtdcore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/mtdcore.c +1 -1
@@ -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 ; }
Signature · 1 line
1.7.5.4
Artem Bityutskiy
AppliedQuoted 4 lines · Brian Norris
We don't need to to check for
mtd->resumebefore callingmtd_resume().mtd_resume()should take care of that.Signed-off-by Brian Norris <[email protected]>
Pushed to l2-mtd.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy