mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-17 14:18:14 +01:00
blk: Drop unnecessary #ifdef in in blk_legacy
We can rely on the compiler to eliminate any dead code. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
003357cc48
commit
14d2c5d819
@ -70,7 +70,6 @@ static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp)
|
|||||||
return drv->get_dev(devnum, descp);
|
return drv->get_dev(devnum, descp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_HAVE_BLOCK_DEVICE
|
|
||||||
int blk_list_part(enum if_type if_type)
|
int blk_list_part(enum if_type if_type)
|
||||||
{
|
{
|
||||||
struct blk_driver *drv;
|
struct blk_driver *drv;
|
||||||
@ -174,7 +173,6 @@ int blk_show_device(enum if_type if_type, int devnum)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_HAVE_BLOCK_DEVICE */
|
|
||||||
|
|
||||||
struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum)
|
struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user