gateway: remove 2 superfluous asserts
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 13 Dec 2012 12:57:01 +0000 (13:57 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 13 Dec 2012 12:59:30 +0000 (13:59 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 6106df2..930a33c 100644 (file)
@@ -216,7 +216,6 @@ static void get_unused_iptunnel_name(struct gateway_entry *gw, char * name, stru
       return;
     }
 
-    assert(ifn);
     /* do not return, fall-through to classic naming as fallback */
   }
 
@@ -246,8 +245,6 @@ static void set_unused_iptunnel_name(struct gateway_entry *gw) {
     ifn->gw = NULL;
     return;
   }
-
-  assert(ifn);
 }
 
 /**