iface: remove redundant functions

This commit is contained in:
Jan Engelhardt
2009-04-05 10:50:45 +02:00
parent 9b198fe6e7
commit af5823b407
2 changed files with 0 additions and 22 deletions

View File

@@ -91,11 +91,6 @@ static void iface_mt_help(void)
XTABLES_VERSION, _MODULE_REVISION); 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, static int iface_mt_parse(int c, char **argv, int invert, unsigned int *flags,
const void *entry, struct xt_entry_match **match) 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)), .size = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
.userspacesize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)), .userspacesize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
.help = iface_mt_help, .help = iface_mt_help,
.init = iface_mt_init,
.parse = iface_mt_parse, .parse = iface_mt_parse,
.final_check = iface_mt_check, .final_check = iface_mt_check,
.print = iface_mt_print, .print = iface_mt_print,
@@ -238,7 +232,6 @@ static struct xtables_match iface_mt6_reg = {
.size = XT_ALIGN(sizeof(struct xt_iface_mtinfo)), .size = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
.userspacesize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)), .userspacesize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
.help = iface_mt_help, .help = iface_mt_help,
.init = iface_mt_init,
.parse = iface_mt_parse, .parse = iface_mt_parse,
.final_check = iface_mt_check, .final_check = iface_mt_check,
.print = iface_mt_print, .print = iface_mt_print,

View File

@@ -85,17 +85,6 @@ static bool xt_iface_mt(const struct sk_buff *skb,
return retval; 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 = { static struct xt_match xt_iface_mt_reg[] __read_mostly = {
{ {
.name = _MODULE_NAME, .name = _MODULE_NAME,
@@ -103,8 +92,6 @@ static struct xt_match xt_iface_mt_reg[] __read_mostly = {
.family = AF_INET, .family = AF_INET,
.matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)), .matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
.match = xt_iface_mt, .match = xt_iface_mt,
.checkentry = xt_iface_mt_check,
.destroy = xt_iface_mt_destroy,
.data = 0, .data = 0,
.me = THIS_MODULE, .me = THIS_MODULE,
}, },
@@ -114,8 +101,6 @@ static struct xt_match xt_iface_mt_reg[] __read_mostly = {
.family = AF_INET6, .family = AF_INET6,
.matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)), .matchsize = XT_ALIGN(sizeof(struct xt_iface_mtinfo)),
.match = xt_iface_mt, .match = xt_iface_mt,
.checkentry = xt_iface_mt_check,
.destroy = xt_iface_mt_destroy,
.data = 0, .data = 0,
.me = THIS_MODULE, .me = THIS_MODULE,
}, },