summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2018-07-25 10:44:27 +0200
committerFelix Fietkau <nbd@nbd.name>2018-07-25 10:44:27 +0200
commitb8c1bca9c506f8ab917bbed3de5ad433990ca618 (patch)
tree96a34a4c472d600604951a64bb4c582cd49fbe03
parenta2f952deaeeb15213eae1dbe047dca30d90a3c0c (diff)
iprule: remove bogus assert calls
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--iprule.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/iprule.c b/iprule.c
index 67ef28a..d3f6073 100644
--- a/iprule.c
+++ b/iprule.c
@@ -13,7 +13,6 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
-#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
@@ -182,13 +181,11 @@ static void generic_interface_cb(
continue;
if (!strcmp(rule->out_iface, iface->name)) {
- assert(!rule->out_dev);
memcpy(rule->out_dev, iface->l3_dev.dev->ifname, sizeof(rule->out_dev));
interface_add_user(&rule->out_iface_user, iface);
}
if (!strcmp(rule->in_iface, iface->name)) {
- assert(!rule->in_dev);
memcpy(rule->in_dev, iface->l3_dev.dev->ifname, sizeof(rule->in_dev));
interface_add_user(&rule->in_iface_user, iface);
}