diff mbox

[U-Boot] env_flash.c: Drop unused variables

Message ID 1397766112-2651-1-git-send-email-trini@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini April 17, 2014, 8:21 p.m. UTC
With 7ce1526 we no longer need 'len' or 'res', so drop these variables.

Signed-off-by: Tom Rini <trini@ti.com>
---
 common/env_flash.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Tom Rini April 18, 2014, 1:21 p.m. UTC | #1
On Thu, Apr 17, 2014 at 04:21:52PM -0400, Tom Rini wrote:

> With 7ce1526 we no longer need 'len' or 'res', so drop these variables.
> 
> Signed-off-by: Tom Rini <trini@ti.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/common/env_flash.c b/common/env_flash.c
index b3ad908..004e884 100644
--- a/common/env_flash.c
+++ b/common/env_flash.c
@@ -224,9 +224,8 @@  int env_init(void)
 int saveenv(void)
 {
 	env_t	env_new;
-	ssize_t	len;
 	int	rc = 1;
-	char	*res, *saved_data = NULL;
+	char	*saved_data = NULL;
 #if CONFIG_ENV_SECT_SIZE > CONFIG_ENV_SIZE
 	ulong	up_data = 0;