mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
bcm53xx: use -ENOENT error for TRX parser workaround patch
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Change return value from -EINVAL to -ENOENT for the TRX parser workaround patch as it's better suited and it's the common exit error for parser failing parsing for expected condition (partition not init, zero partition found in the schema, magic values not matching) Also this is needed for a pending upstream patch that will permit parser to fail and be skipped for subpartitions only with the -ENOENT error. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
71ebc54d2a
commit
231bbe528d
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|||
|
||||
+ /* Don't parse any failsafe / backup partitions */
|
||||
+ if (strcmp(mtd->name, "firmware"))
|
||||
+ return -EINVAL;
|
||||
+ return -ENOENT;
|
||||
+
|
||||
parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition),
|
||||
GFP_KERNEL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue