You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mtd: simplify return logic in do_map_probe()
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
committed by
David Woodhouse
parent
88dfda5f74
commit
3410a711a5
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user