projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mtd: simplify return logic in do_map_probe()
[linux-2.6-microblaze.git]
/
drivers
/
mtd
/
chips
/
chipreg.c
diff --git
a/drivers/mtd/chips/chipreg.c
b/drivers/mtd/chips/chipreg.c
index
da1f96f
..
0bbc61b
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.