kernel: remove obsolete kernel version switches
[openwrt/openwrt.git] / target / linux / generic / files / block / partitions / fit.c
index ce6a2b54115c970d615494f167426c0308fd0f4d..13c03743f3dd38278cf1a707917abf1d91f71a26 100644 (file)
 
 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;