From: Simon Glass <simon.glass@canonical.com>
The parse_pxefile_top() function takes a base parameter but never uses
it. Remove this dead parameter.
Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
boot/pxe_parse.c | 2 +-
boot/pxe_utils.c | 4 ++--
include/pxe_utils.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
@@ -691,7 +691,7 @@ static int parse_label(char **c, struct pxe_menu *cfg)
*/
#define MAX_NEST_LEVEL 16
-int parse_pxefile_top(struct pxe_context *ctx, char *p, ulong base,
+int parse_pxefile_top(struct pxe_context *ctx, char *p,
struct pxe_menu *cfg, int nest_level)
{
struct token t;
@@ -1013,7 +1013,7 @@ struct pxe_menu *parse_pxefile(struct pxe_context *ctx, struct abuf *buf)
if (!cfg)
return NULL;
- r = parse_pxefile_top(ctx, abuf_data(buf), abuf_addr(buf), cfg, 1);
+ r = parse_pxefile_top(ctx, abuf_data(buf), cfg, 1);
if (r < 0) {
pxe_menu_uninit(cfg);
@@ -1069,7 +1069,7 @@ int pxe_parse_include(struct pxe_context *ctx, const struct pxe_include *inc,
int ret;
buf = map_sysmem(addr, 0);
- ret = parse_pxefile_top(ctx, buf, addr, inc->cfg, inc->nest_level);
+ ret = parse_pxefile_top(ctx, buf, inc->cfg, inc->nest_level);
unmap_sysmem(buf);
return ret;
@@ -510,7 +510,7 @@ int pxe_setup_label(struct pxe_context *ctx, struct pxe_label *label);
*
* Returns 1 on success, < 0 on error.
*/
-int parse_pxefile_top(struct pxe_context *ctx, char *p, ulong base,
+int parse_pxefile_top(struct pxe_context *ctx, char *p,
struct pxe_menu *cfg, int nest_level);
/**