提交 0a413d70 编写于 作者: U Uwe Kleine-König 提交者: Jiri Kosina

mtd: simplify return logic in do_map_probe()

Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册