Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Jiri Kosina
0a413d70 73c1e204

+1 -4
+1 -4
drivers/mtd/chips/chipreg.c
··· 76 76 */ 77 77 module_put(drv->module); 78 78 79 - if (ret) 80 - return ret; 81 - 82 - return NULL; 79 + return ret; 83 80 } 84 81 /* 85 82 * Destroy an MTD device which was created for a map device.