mtd: simplify return logic in do_map_probe()
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
73c1e20430
commit
0a413d708a
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user