aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-5.15/420-mtd-redboot_space.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/generic/pending-5.15/420-mtd-redboot_space.patch')
-rw-r--r--target/linux/generic/pending-5.15/420-mtd-redboot_space.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/pending-5.15/420-mtd-redboot_space.patch b/target/linux/generic/pending-5.15/420-mtd-redboot_space.patch
index a3cd4ecf1f..2673d720e5 100644
--- a/target/linux/generic/pending-5.15/420-mtd-redboot_space.patch
+++ b/target/linux/generic/pending-5.15/420-mtd-redboot_space.patch
@@ -16,9 +16,9 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
names += strlen(names)+1;
-#ifdef CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED
- if(fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_base) {
+ if (fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_base) {
- i++;
-- parts[i].offset = parts[i-1].size + parts[i-1].offset;
+- parts[i].offset = parts[i - 1].size + parts[i - 1].offset;
- parts[i].size = fl->next->img->flash_base - parts[i].offset;
- parts[i].name = nullname;
- }