[RFC v2 02/16] fs/tftp.c: drop unused server_port variable

Antony Pavlov antonynpavlov at gmail.com
Sun Jul 19 13:07:09 PDT 2015


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 fs/tftp.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/fs/tftp.c b/fs/tftp.c
index 0de215e..56d4365 100644
--- a/fs/tftp.c
+++ b/fs/tftp.c
@@ -75,7 +75,6 @@ struct file_priv {
 	uint16_t last_block;
 	int state;
 	int err;
-	int server_port;
 	const char *filename;
 	int filesize;
 	uint64_t resend_timeout;
@@ -299,7 +298,6 @@ static void tftp_recv(struct file_priv *priv,
 
 	case TFTP_OACK:
 		tftp_parse_oack(priv, pkt, len);
-		priv->server_port = ntohs(uh_sport);
 		priv->tftp_con->udp->uh_dport = uh_sport;
 
 		if (priv->push) {
@@ -322,7 +320,6 @@ static void tftp_recv(struct file_priv *priv,
 			/* first block received */
 			priv->state = STATE_RDATA;
 			priv->tftp_con->udp->uh_dport = uh_sport;
-			priv->server_port = ntohs(uh_sport);
 			priv->last_block = 0;
 
 			if (priv->block != 1) {	/* Assertion */
-- 
2.1.4




More information about the barebox mailing list