commit | 0a413d708a5df80f50b2fb8c24a32c559a06bffc | [log] [tgz] |
---|---|---|
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | Mon Feb 13 16:12:24 2012 +0100 |
committer | Jiri Kosina <jkosina@suse.cz> | Tue Feb 28 15:55:13 2012 +0100 |
tree | c552413ed869985310f93ac70eb222bd695c0fcc | |
parent | 73c1e20430cbb96947fe3b835c6a3c13805eafd8 [diff] [blame] |
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>
diff --git a/drivers/mtd/chips/chipreg.c b/drivers/mtd/chips/chipreg.c index da1f96f..0bbc61b 100644 --- a/drivers/mtd/chips/chipreg.c +++ b/drivers/mtd/chips/chipreg.c
@@ -76,10 +76,7 @@ */ module_put(drv->module); - if (ret) - return ret; - - return NULL; + return ret; } /* * Destroy an MTD device which was created for a map device.