netfilter: xtables: remove redundant casts
authorJan Engelhardt <jengelh@medozas.de>
Wed, 15 Apr 2009 18:27:03 +0000 (20:27 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 8 May 2009 08:30:47 +0000 (10:30 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/ipv4/netfilter/ip_tables.c
net/ipv6/netfilter/ip6_tables.c

index 5abc276..7fcbc16 100644 (file)
@@ -280,7 +280,7 @@ static void trace_packet(struct sk_buff *skb,
        char *hookname, *chainname, *comment;
        unsigned int rulenum = 0;
 
-       table_base = (void *)private->entries[smp_processor_id()];
+       table_base = private->entries[smp_processor_id()];
        root = get_entry(table_base, private->hook_entry[hook]);
 
        hookname = chainname = (char *)hooknames[hook];
index 37a850e..2b52fac 100644 (file)
@@ -312,7 +312,7 @@ static void trace_packet(struct sk_buff *skb,
        char *hookname, *chainname, *comment;
        unsigned int rulenum = 0;
 
-       table_base = (void *)private->entries[smp_processor_id()];
+       table_base = private->entries[smp_processor_id()];
        root = get_entry(table_base, private->hook_entry[hook]);
 
        hookname = chainname = (char *)hooknames[hook];