summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hard-interface.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/hard-interface.c
parent37a4065ec79dcf172c44cb2741c1b9983ecfc492 (diff)
downloadblackbird-op-linux-5f718c20076f4b47c3dc0f1277aef9966928089c.tar.gz
blackbird-op-linux-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 'net/batman-adv/hard-interface.c')
-rw-r--r--net/batman-adv/hard-interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
index 915e12b820b9..e626e75a7e65 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
@@ -523,7 +523,7 @@ void hardif_remove_interfaces(void)
static int hard_if_event(struct notifier_block *this,
unsigned long event, void *ptr)
{
- struct net_device *net_dev = (struct net_device *)ptr;
+ struct net_device *net_dev = ptr;
struct hard_iface *hard_iface = hardif_get_by_netdev(net_dev);
struct hard_iface *primary_if = NULL;
struct bat_priv *bat_priv;
OpenPOWER on IntegriCloud