summaryrefslogtreecommitdiff
path: root/pkt_buff.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-06-16 09:42:37 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-06-16 09:42:37 +0200
commit5b854e5e13d3b44f68c1069a6bb5808f77fca134 (patch)
treec95bcf91419108d9b6c37a6081ea7fc666edb6c7 /pkt_buff.h
parent1cc762aa8f89a5e4324f1482d97affa5ef6298bd (diff)
pkt_buff: Remove unnecessary void cast
lookup_hash() returns void * which does not need to be cast. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'pkt_buff.h')
-rw-r--r--pkt_buff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkt_buff.h b/pkt_buff.h
index f86c011..3376107 100644
--- a/pkt_buff.h
+++ b/pkt_buff.h
@@ -104,7 +104,7 @@ static inline void pkt_set_proto(struct pkt_buff *pkt, struct hash_table *table,
{
bug_on(!pkt || !table);
- pkt->proto = (struct protocol *) lookup_hash(key, table);
+ pkt->proto = lookup_hash(key, table);
while (pkt->proto && key != pkt->proto->key)
pkt->proto = pkt->proto->next;
}