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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx>
---
 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


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux