aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/block
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/files/block')
-rw-r--r--target/linux/generic/files/block/partitions/fit.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/target/linux/generic/files/block/partitions/fit.c b/target/linux/generic/files/block/partitions/fit.c
index ce6a2b54115..13c03743f3d 100644
--- a/target/linux/generic/files/block/partitions/fit.c
+++ b/target/linux/generic/files/block/partitions/fit.c
@@ -73,11 +73,7 @@
int parse_fit_partitions(struct parsed_partitions *state, u64 fit_start_sector, u64 sectors, int *slot, int add_remain)
{
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
struct block_device *bdev = state->disk->part0;
-#else
- struct block_device *bdev = state->bdev;
-#endif
struct address_space *mapping = bdev->bd_inode->i_mapping;
struct page *page;
void *fit, *init_fit;