Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247045
b: refs/heads/master
c: 5f657ec
h: refs/heads/master
i:
  247043: ce239de
v: v3
  • Loading branch information
Antonio Quartulli authored and Sven Eckelmann committed May 1, 2011
1 parent cc94175 commit afee3cc
Show file tree
Hide file tree
Showing 4 changed files with 3 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: b5a6f69c5ca024bea43496d517c3b7ccfdb084a6
refs/heads/master: 5f657ec0d2103571a31707711926b443a27b0c66
1 change: 0 additions & 1 deletion trunk/net/batman-adv/aggregation.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ static bool can_aggregate_with(struct batman_packet *new_batman_packet,
return false;
}

#define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
/* create a new aggregated packet and add this packet to it */
static void new_aggregated_packet(unsigned char *packet_buff, int packet_len,
unsigned long send_time, bool direct_link,
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/batman-adv/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,6 @@ static inline int compare_eth(void *data1, void *data2)
return (memcmp(data1, data2, ETH_ALEN) == 0 ? 1 : 0);
}

#define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)

#endif /* _NET_BATMAN_ADV_MAIN_H_ */
1 change: 0 additions & 1 deletion trunk/net/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ static void _add_bcast_packet_to_list(struct bat_priv *bat_priv,
send_time);
}

#define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0)
/* add a broadcast packet to the queue and setup timers. broadcast packets
* are sent multiple times to increase probability for beeing received.
*
Expand Down

0 comments on commit afee3cc

Please sign in to comment.