gateway: remove some unused code in refresh_smartgw_netmask
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 18 Jul 2012 16:40:31 +0000 (18:40 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Jul 2012 06:55:06 +0000 (08:55 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index a66dabf..37aba5d 100644 (file)
@@ -100,9 +100,6 @@ static void refresh_smartgw_netmask(void) {
   memset(&smart_gateway_netmask, 0, sizeof(smart_gateway_netmask));
 
   if (olsr_cnf->smart_gw_active) {
-    union olsr_ip_addr gw_net;
-    memset(&gw_net, 0, sizeof(gw_net));
-
     ip = (uint8_t *) &smart_gateway_netmask;
 
     if (olsr_cnf->smart_gw_uplink > 0 && olsr_cnf->smart_gw_downlink > 0) {