projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73c1e20
)
mtd: simplify return logic in do_map_probe()
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Mon, 13 Feb 2012 15:12:24 +0000
(16:12 +0100)
committer
Jiri Kosina
<jkosina@suse.cz>
Tue, 28 Feb 2012 14:55:13 +0000
(15:55 +0100)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/mtd/chips/chipreg.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/chips/chipreg.c
b/drivers/mtd/chips/chipreg.c
index da1f96f385c70b695f6e52696cc91b3bf6833948..0bbc61ba9524ec7f89e1ffba7b0aaceb53c365ad 100644
(file)
--- a/
drivers/mtd/chips/chipreg.c
+++ b/
drivers/mtd/chips/chipreg.c
@@
-76,10
+76,7
@@
struct mtd_info *do_map_probe(const char *name, struct map_info *map)
*/
module_put(drv->module);
- if (ret)
- return ret;
-
- return NULL;
+ return ret;
}
/*
* Destroy an MTD device which was created for a map device.