[PATCH v1 3/3] cmd: avb: remove warning during avb build

Andrii Chepurnyi andrii.chepurnyi82 at gmail.com
Fri Apr 8 14:43:03 CEST 2022


From: Andrii Chepurnyi <andrii.chepurnyi82 at gmail.com>

From: Andrii Chepurnyi <andrii_chepurnyi at epam.com>

Remove warning during avb build:
cmd/avb.c:247:8: warning: unused variable ‘extra_args’ [-Wunused-variable]
  247 |  char *extra_args;
      |        ^~~~~~~~~~
cmd/avb.c:246:8: warning: unused variable ‘cmdline’ [-Wunused-variable]
  246 |  char *cmdline;
      |        ^~~~~~~

Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi at epam.com>
---
 cmd/avb.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cmd/avb.c b/cmd/avb.c
index 6fdbdc708f..a5ac224b22 100644
--- a/cmd/avb.c
+++ b/cmd/avb.c
@@ -231,8 +231,6 @@ int do_avb_verify_part(struct cmd_tbl *cmdtp, int flag,
 	const char * const requested_partitions[] = {"boot", NULL};
 	AvbSlotVerifyResult slot_result;
 	AvbSlotVerifyData *out_data;
-	char *cmdline;
-	char *extra_args;
 	char *slot_suffix = "";
 
 	bool unlocked = false;
-- 
2.25.1



More information about the U-Boot mailing list