aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-05-14 23:14:52 +0200
committerSven Eckelmann <sven@narfation.org>2011-05-30 07:39:32 +0200
commit5f718c20076f4b47c3dc0f1277aef9966928089c (patch)
tree98c71b56526d9a8ab3edd037db1fa5597e5f7e64 /net/batman-adv/translation-table.c
parentbatman-adv: Only use int up and down gw representation (diff)
downloadlinux-dev-5f718c20076f4b47c3dc0f1277aef9966928089c.tar.xz
linux-dev-5f718c20076f4b47c3dc0f1277aef9966928089c.zip
batman-adv: Remove explicit casts cast from void* for store
It is not necessary to cast a void* to the pointer type when we just store it and don't want to do pointer arithmetic before the actual assignment. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to '')
-rw-r--r--net/batman-adv/translation-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index be7b5cc71d28..802eacef05b8 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -313,7 +313,7 @@ out:
static void _tt_local_del(struct hlist_node *node, void *arg)
{
- struct bat_priv *bat_priv = (struct bat_priv *)arg;
+ struct bat_priv *bat_priv = arg;
void *data = container_of(node, struct tt_local_entry, hash_entry);
kfree(data);