firmware-utils: fix compilation warnings.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42986
This commit is contained in:
John Crispin
2014-10-20 06:29:13 +00:00
parent 829bf6b9a1
commit 7322fe161a
2 changed files with 4 additions and 6 deletions

View File

@@ -70,7 +70,6 @@ static int crypt_file(void)
{
unsigned char *buf = NULL;
ssize_t src_len;
ssize_t crypt_len;
int err;
int ret = -1;
@@ -92,7 +91,6 @@ static int crypt_file(void)
goto out;
}
crypt_len = (src_len > 512) ? 512 : src_len;
if (do_decrypt)
crypt_header(buf, 512, crypt_key2, crypt_key1);
else