remove some dead assignments, add a TODO comment

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-07-04 04:26:55 +02:00
parent fd744519d1
commit 243d1757d7
3 changed files with 2 additions and 3 deletions

View File

@ -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;