]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
iface: remove redundant functions
authorJan Engelhardt <jengelh@medozas.de>
Sun, 5 Apr 2009 08:50:45 +0000 (10:50 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Sun, 5 Apr 2009 08:50:45 +0000 (10:50 +0200)
extensions/libxt_iface.c
extensions/xt_iface.c

index 5f4e75b5b0c4f87193ad0583d503df159bf0a18e..10e093fa376c6a75032fcae125d7f17bbc9f69b2 100644 (file)
@@ -91,11 +91,6 @@ static void iface_mt_help(void)
        XTABLES_VERSION, _MODULE_REVISION);
 }
 
-static void iface_mt_init(struct xt_entry_match *m)
-{
-       DEBUGP("init...");
-}
-
 static int iface_mt_parse(int c, char **argv, int invert, unsigned int *flags,
     const void *entry, struct xt_entry_match **match)
 {
@@ -222,7 +217,6 @@ static struct xtables_match iface_mt_reg = {
        .size           = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
        .userspacesize  = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
        .help           = iface_mt_help,
-       .init           = iface_mt_init,
        .parse          = iface_mt_parse,
        .final_check    = iface_mt_check,
        .print          = iface_mt_print,
@@ -238,7 +232,6 @@ static struct xtables_match iface_mt6_reg = {
        .size           = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
        .userspacesize  = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
        .help           = iface_mt_help,
-       .init           = iface_mt_init,
        .parse          = iface_mt_parse,
        .final_check    = iface_mt_check,
        .print          = iface_mt_print,
index 8f9f51b37d826f43f13da941f1f810a23d149685..c7511d91ed760c35f925af754310a8ec7d1dcba1 100644 (file)
@@ -85,17 +85,6 @@ static bool xt_iface_mt(const struct sk_buff *skb,
        return retval;
 }
 
-static bool xt_iface_mt_check(const struct xt_mtchk_param *par)
-{
-       DEBUGP("checkentry...");
-       return true;
-}
-
-static void xt_iface_mt_destroy(const struct xt_mtdtor_param *par)
-{
-       DEBUGP("destroy...");
-}
-
 static struct xt_match xt_iface_mt_reg[] __read_mostly = {
        {
                .name       = _MODULE_NAME,
@@ -103,8 +92,6 @@ static struct xt_match xt_iface_mt_reg[] __read_mostly = {
                .family     = AF_INET,
                .matchsize  = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
                .match      = xt_iface_mt,
-               .checkentry = xt_iface_mt_check,
-               .destroy    = xt_iface_mt_destroy,
                .data       = 0,
                .me         = THIS_MODULE,
        },
@@ -114,8 +101,6 @@ static struct xt_match xt_iface_mt_reg[] __read_mostly = {
                .family     = AF_INET6,
                .matchsize  = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
                .match      = xt_iface_mt,
-               .checkentry = xt_iface_mt_check,
-               .destroy    = xt_iface_mt_destroy,
                .data       = 0,
                .me         = THIS_MODULE,
        },