From 7e4fd7142366b570e3566df8ecb7fb909bd46b32 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 13 Dec 2023 21:43:10 +0100 Subject: extensions: libebt_*: Drop some needless init callbacks Extension data is zero by default. --- extensions/libebt_802_3.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'extensions/libebt_802_3.c') diff --git a/extensions/libebt_802_3.c b/extensions/libebt_802_3.c index f05d02ea..8cbcdcea 100644 --- a/extensions/libebt_802_3.c +++ b/extensions/libebt_802_3.c @@ -36,14 +36,6 @@ static void br802_3_print_help(void) " Type implies SAP value 0xaa\n"); } -static void br802_3_init(struct xt_entry_match *match) -{ - struct ebt_802_3_info *info = (struct ebt_802_3_info *)match->data; - - info->invflags = 0; - info->bitmask = 0; -} - static int br802_3_parse(int c, char **argv, int invert, unsigned int *flags, const void *entry, struct xt_entry_match **match) @@ -119,7 +111,6 @@ static struct xtables_match br802_3_match = .family = NFPROTO_BRIDGE, .size = XT_ALIGN(sizeof(struct ebt_802_3_info)), .userspacesize = XT_ALIGN(sizeof(struct ebt_802_3_info)), - .init = br802_3_init, .help = br802_3_print_help, .parse = br802_3_parse, .final_check = br802_3_final_check, -- cgit v1.2.3