Skip to content
Snippets Groups Projects
Commit 0a413d70 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Jiri Kosina
Browse files

mtd: simplify return logic in do_map_probe()

parent 73c1e204
No related branches found
No related tags found
No related merge requests found
...@@ -76,10 +76,7 @@ struct mtd_info *do_map_probe(const char *name, struct map_info *map) ...@@ -76,10 +76,7 @@ struct mtd_info *do_map_probe(const char *name, struct map_info *map)
*/ */
module_put(drv->module); module_put(drv->module);
if (ret) return ret;
return ret;
return NULL;
} }
/* /*
* Destroy an MTD device which was created for a map device. * Destroy an MTD device which was created for a map device.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment