Commit 0a413d70 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Jiri Kosina

mtd: simplify return logic in do_map_probe()

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 73c1e204
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment