Commit 3410a711 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by David Woodhouse

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 avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 88dfda5f
...@@ -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.
......
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