summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
authorDenys Vlasenko2010-07-04 04:26:55 +0200
committerDenys Vlasenko2010-07-04 04:26:55 +0200
commit243d1757d798a0cd43f51eb1db75cc1e81c65732 (patch)
tree09bad361c80d75a46afcdea52a3f5debb61b8b4d /networking/udhcp
parentfd744519d1e848c4760c23805bf993396b19c8b2 (diff)
downloadbusybox-243d1757d798a0cd43f51eb1db75cc1e81c65732.zip
busybox-243d1757d798a0cd43f51eb1db75cc1e81c65732.tar.gz
remove some dead assignments, add a TODO comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/dhcprelay.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c
index e14325d..d194a98 100644
--- a/networking/udhcp/dhcprelay.c
+++ b/networking/udhcp/dhcprelay.c
@@ -175,7 +175,6 @@ static void pass_to_server(struct dhcp_packet *p, int packet_len, int client, in
struct sockaddr_in *client_addr, struct sockaddr_in *server_addr)
{
int res, type;
- struct xid_item *item;
/* check packet_type */
type = get_dhcp_packet_type(p);
@@ -187,7 +186,7 @@ static void pass_to_server(struct dhcp_packet *p, int packet_len, int client, in
}
/* create new xid entry */
- item = xid_add(p->xid, client_addr, client);
+ xid_add(p->xid, client_addr, client);
/* forward request to LAN (server) */
errno = 0;