Răsfoiți Sursa

netfilter: xtables: remove redundant casts

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Jan Engelhardt 16 ani în urmă
părinte
comite
ccf5bd8c27
2 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 1 1
      net/ipv4/netfilter/ip_tables.c
  2. 1 1
      net/ipv6/netfilter/ip6_tables.c

+ 1 - 1
net/ipv4/netfilter/ip_tables.c

@@ -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];

+ 1 - 1
net/ipv6/netfilter/ip6_tables.c

@@ -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];