summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-06-14 14:56:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-06-28 10:43:55 +0200
commit3039467bbd3eb1fa8c9ea2c3b63451f0082143e9 (patch)
tree757e65fb4ca884f872ce9fc48ef73df10d6e7232
parent40aad62d1c2d0b49ab16d6891bbcbb3b39a56df9 (diff)
downloadbarebox-3039467bbd3eb1fa8c9ea2c3b63451f0082143e9.tar.gz
barebox-3039467bbd3eb1fa8c9ea2c3b63451f0082143e9.tar.xz
tftp: remove unused variables
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--net/tftp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/tftp.c b/net/tftp.c
index 38d16bcbd2..338359b119 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -35,8 +35,6 @@
static int tftp_server_port; /* The UDP port at their end */
static unsigned int tftp_block; /* packet sequence number */
static unsigned int tftp_last_block; /* last packet sequence number received */
-static unsigned int tftp_block_wrap; /* count of sequence number wraparounds */
-static unsigned int tftp_block_wrap_offset; /* memory offset due to wrapping */
static int tftp_state;
static uint64_t tftp_timer_start;
static int tftp_err;
@@ -135,10 +133,7 @@ static void tftp_handler(char *packet, unsigned len)
* number of 0 this means that there was a wrap
* around of the (16 bit) counter.
*/
- if (tftp_block == 0) {
- tftp_block_wrap++;
- tftp_block_wrap_offset += TFTP_BLOCK_SIZE * TFTP_SEQUENCE_SIZE;
- } else {
+ if (tftp_block) {
if (((tftp_block - 1) % 10) == 0) {
putchar('#');
} else if ((tftp_block % (10 * HASHES_PER_LINE)) == 0) {
@@ -155,8 +150,6 @@ static void tftp_handler(char *packet, unsigned len)
tftp_con->udp->uh_dport = udp->uh_sport;
tftp_server_port = ntohs(udp->uh_sport);
tftp_last_block = 0;
- tftp_block_wrap = 0;
- tftp_block_wrap_offset = 0;
if (tftp_block != 1) { /* Assertion */
printf("error: First block is not block 1 (%ld)\n",