[PATCH 15/32] common: env: drop never-read initialization
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Sep 5 02:55:40 PDT 2022
c is used a temporary variable later on for context pushing and its
initializer is never read, so drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
common/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/env.c b/common/env.c
index 5ac1e62b8c79..9e9988e415cf 100644
--- a/common/env.c
+++ b/common/env.c
@@ -80,7 +80,7 @@ int env_push_context(void)
*/
int env_pop_context(void)
{
- struct env_context *c = context;
+ struct env_context *c;
if (context->parent) {
c = context->parent;
--
2.30.2
More information about the barebox
mailing list