netfilter: xtables: do without explicit XT_ALIGN
authorJan Engelhardt <jengelh@medozas.de>
Tue, 9 Mar 2010 22:27:24 +0000 (23:27 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 18 Mar 2010 13:20:06 +0000 (14:20 +0100)
XT_ALIGN is already applied on matchsize/targetsize in x_tables.c,
so it is not strictly needed in the extensions.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/netfilter/xt_CT.c
net/netfilter/xt_LED.c

index fda603edb31ae7b5b2a469c542dd5a978a433fe8..6509e03f1e6233f7c288c20d9922cd5033ea08e9 100644 (file)
@@ -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 = {
        .name           = "CT",
        .family         = NFPROTO_UNSPEC,
-       .targetsize     = XT_ALIGN(sizeof(struct xt_ct_target_info)),
+       .targetsize     = sizeof(struct xt_ct_target_info),
        .checkentry     = xt_ct_tg_check,
        .destroy        = xt_ct_tg_destroy,
        .target         = xt_ct_target,
index 8ff7843bb92169b9fa2f9dbb65c90074c329c2f6..f86dc52367b1312effe0becb027231beadcbd789 100644 (file)
@@ -141,7 +141,7 @@ static struct xt_target led_tg_reg __read_mostly = {
        .revision       = 0,
        .family         = NFPROTO_UNSPEC,
        .target         = led_tg,
-       .targetsize     = XT_ALIGN(sizeof(struct xt_led_info)),
+       .targetsize     = sizeof(struct xt_led_info),
        .checkentry     = led_tg_check,
        .destroy        = led_tg_destroy,
        .me             = THIS_MODULE,