projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e34174
)
mtd: mtdcore: remove unnecessary mtd->resume check
author
Brian Norris
<computersforpeace@gmail.com>
Fri, 27 Jan 2012 20:39:32 +0000
(12:39 -0800)
committer
David Woodhouse
<David.Woodhouse@intel.com>
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 <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/mtdcore.c
b/drivers/mtd/mtdcore.c
index aafe0ee9c9f34feecf7a4f99dfcdc231a637d209..5ea22cf357fb422177154c121cdbf92aafc6e1bc 100644
(file)
--- 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;
}