diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2025-01-11 21:42:13 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-06-20 08:01:09 -0600 |
commit | 8c61fc082e9ae045534dc2f18ed50493adf35e6d (patch) | |
tree | 2e318f0fe1346bfe68d8df43baa5640bf1e345bb /boot/bootmeth-uclass.c | |
parent | 8da358c0a15a4f538d561602f600b2695fedeb56 (diff) |
bootstd: Fix incorrect struct name in bootmeth_setup_iter_order()
There is no such thing as struct bootmeth, it's probably a typo. This
issue doesn't affect the execution as it's a pointer, and pointer sizes
are the same for all data types. But it can be confusing, so make it
struct udevice, as it should be.
Fixes: a950d31abe98 ("bootstd: Add the bootmeth uclass and helpers")
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Diffstat (limited to 'boot/bootmeth-uclass.c')
-rw-r--r-- | boot/bootmeth-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/bootmeth-uclass.c b/boot/bootmeth-uclass.c index 57b30bcb513..188f6ea1895 100644 --- a/boot/bootmeth-uclass.c +++ b/boot/bootmeth-uclass.c @@ -141,7 +141,7 @@ int bootmeth_setup_iter_order(struct bootflow_iter *iter, bool include_global) goto err_order; } memcpy(order, std->bootmeth_order, - count * sizeof(struct bootmeth *)); + count * sizeof(struct udevice *)); if (IS_ENABLED(CONFIG_BOOTMETH_GLOBAL)) { for (i = 0; i < count; i++) { |