Skip to contentSkip to conversation

env_flash.c: Drop unused variables

PATCH New Tom Rini 1 participant 2 messages Apr 17, 2014 – Apr 18, 2014

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 env_flash.c: Drop unused variables

With 7ce1526 we no longer need 'len' or 'res', so drop these variables.

---
 common/env_flash.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
common/env_flash.c +1 -2
index b3ad908..004e884 100644
@@ -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;
 
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH 1/1 env_flash.c: Drop unused variables

Quoted 3 lines · Tom Rini

With 7ce1526 we no longer need 'len' or 'res', so drop these variables.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/261c29b1/attachment.pgp>