From 98b5755fb0484ac575b66784865bde2b30ea1d87 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:04 -0600 Subject: env: Drop unused env_ptr variables This variable is declared as a global in most environment location drivers. But it is not used outside the drivers and most of the declarations are unnecessary. Also some drivers call free() on env_ptr which seems wrong since it is not in the heap. Drop the variable where possible, and all calls to free(). Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- env/nowhere.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'env/nowhere.c') diff --git a/env/nowhere.c b/env/nowhere.c index 1a17d6978b..d60de494e6 100644 --- a/env/nowhere.c +++ b/env/nowhere.c @@ -15,8 +15,6 @@ DECLARE_GLOBAL_DATA_PTR; -env_t *env_ptr; - U_BOOT_ENV_LOCATION(nowhere) = { .location = ENVL_NOWHERE, ENV_NAME("nowhere") -- cgit v1.2.3