Commit 7d5f7ed8 authored by Jan Engelhardt's avatar Jan Engelhardt

netfilter: xtables: do without explicit XT_ALIGN

XT_ALIGN is already applied on matchsize/targetsize in x_tables.c,
so it is not strictly needed in the extensions.
Signed-off-by: default avatarJan Engelhardt <jengelh@medozas.de>
parent e8a96f69
...@@ -137,7 +137,7 @@ static void xt_ct_tg_destroy(const struct xt_tgdtor_param *par) ...@@ -137,7 +137,7 @@ static void xt_ct_tg_destroy(const struct xt_tgdtor_param *par)
static struct xt_target xt_ct_tg __read_mostly = { static struct xt_target xt_ct_tg __read_mostly = {
.name = "CT", .name = "CT",
.family = NFPROTO_UNSPEC, .family = NFPROTO_UNSPEC,
.targetsize = XT_ALIGN(sizeof(struct xt_ct_target_info)), .targetsize = sizeof(struct xt_ct_target_info),
.checkentry = xt_ct_tg_check, .checkentry = xt_ct_tg_check,
.destroy = xt_ct_tg_destroy, .destroy = xt_ct_tg_destroy,
.target = xt_ct_target, .target = xt_ct_target,
......
...@@ -141,7 +141,7 @@ static struct xt_target led_tg_reg __read_mostly = { ...@@ -141,7 +141,7 @@ static struct xt_target led_tg_reg __read_mostly = {
.revision = 0, .revision = 0,
.family = NFPROTO_UNSPEC, .family = NFPROTO_UNSPEC,
.target = led_tg, .target = led_tg,
.targetsize = XT_ALIGN(sizeof(struct xt_led_info)), .targetsize = sizeof(struct xt_led_info),
.checkentry = led_tg_check, .checkentry = led_tg_check,
.destroy = led_tg_destroy, .destroy = led_tg_destroy,
.me = THIS_MODULE, .me = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment