Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220378
b: refs/heads/master
c: 9b37bc2
h: refs/heads/master
v: v3
  • Loading branch information
Sven Eckelmann authored and Greg Kroah-Hartman committed Oct 19, 2010
1 parent 04e17fc commit e8c0170
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1ee600ced32c4cabaeead0a4e84a6d4c9110f82c
refs/heads/master: 9b37bc2c711b2a76ef3daa9437bbf9c58411afbd
7 changes: 5 additions & 2 deletions trunk/drivers/staging/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ static void send_packet_to_if(struct forw_packet *forw_packet,
static void send_packet(struct forw_packet *forw_packet)
{
struct batman_if *batman_if;
struct net_device *soft_iface = forw_packet->if_incoming->soft_iface;
struct bat_priv *bat_priv = netdev_priv(soft_iface);
struct net_device *soft_iface;
struct bat_priv *bat_priv;
struct batman_packet *batman_packet =
(struct batman_packet *)(forw_packet->skb->data);
unsigned char directlink = (batman_packet->flags & DIRECTLINK ? 1 : 0);
Expand All @@ -172,6 +172,9 @@ static void send_packet(struct forw_packet *forw_packet)
return;
}

soft_iface = forw_packet->if_incoming->soft_iface;
bat_priv = netdev_priv(soft_iface);

if (forw_packet->if_incoming->if_status != IF_ACTIVE)
return;

Expand Down

0 comments on commit e8c0170

Please sign in to comment.