Commit 0a413d70 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Jiri Kosina
Browse files

mtd: simplify return logic in do_map_probe()

parent 73c1e204
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -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.