Skip to content

Commit

Permalink
mtd: simplify return logic in do_map_probe()
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Uwe Kleine-König authored and Jiri Kosina committed Feb 28, 2012
1 parent 73c1e20 commit 0a413d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mtd/chips/chipreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0a413d7

Please sign in to comment.