diff mbox series

[v2,3/6] uboot_env: remove unused variables

Message ID 20220308085352.183941-4-gary.bisson@boundarydevices.com
State Accepted
Headers show
Series [v2,1/6] uboot_env: switch to strchr/strrchr | expand

Commit Message

Gary Bisson March 8, 2022, 8:53 a.m. UTC
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
---
Changelog v1->v2:
- None
---
 src/uboot_env.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/src/uboot_env.c b/src/uboot_env.c
index 7dfb3c2..9993142 100644
--- a/src/uboot_env.c
+++ b/src/uboot_env.c
@@ -952,7 +952,6 @@  static int libuboot_load(struct uboot_ctx *ctx)
 	size_t bufsize, usable_envsize;
 	struct uboot_flash_env *dev;
 	bool crcenv[2];
-	unsigned char flags[2];
 	char *line, *next;
 	uint8_t offsetdata = offsetof(struct uboot_env_noredund, data);
 	uint8_t offsetcrc = offsetof(struct uboot_env_noredund, crc);
@@ -1200,7 +1199,6 @@  int libuboot_read_config(struct uboot_ctx *ctx, const char *config)
 	FILE *fp;
 	char *line = NULL;
 	size_t bufsize = 0;
-	int index = 0;
 	int ret = 0;
 	int ndev = 0;
 	struct uboot_flash_env *dev;