aboutsummaryrefslogtreecommitdiff
path: root/drivers/block/blk_legacy.c
diff options
context:
space:
mode:
authorSimon Glass2022-08-11 19:34:47 -0600
committerTom Rini2022-09-16 11:05:00 -0400
commit14d2c5d819bb9f011b518c5394af90c3d8e0d17f (patch)
tree785951340bdac63e4e7596ad1809219855b34dc0 /drivers/block/blk_legacy.c
parent003357cc48dbf6e45ee408f114e4a5de862e7b2e (diff)
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>
Diffstat (limited to 'drivers/block/blk_legacy.c')
-rw-r--r--drivers/block/blk_legacy.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c
index df9a3597545..bd8a17df6a9 100644
--- a/drivers/block/blk_legacy.c
+++ b/drivers/block/blk_legacy.c
@@ -70,7 +70,6 @@ static int get_desc(struct blk_driver *drv, int devnum, struct blk_desc **descp)
return drv->get_dev(devnum, descp);
}
-#ifdef CONFIG_HAVE_BLOCK_DEVICE
int blk_list_part(enum if_type if_type)
{
struct blk_driver *drv;
@@ -174,7 +173,6 @@ int blk_show_device(enum if_type if_type, int devnum)
return 0;
}
-#endif /* CONFIG_HAVE_BLOCK_DEVICE */
struct blk_desc *blk_get_devnum_by_type(enum if_type if_type, int devnum)
{