aboutsummaryrefslogtreecommitdiff
path: root/net/batman-adv/send.c
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@autistici.org>2011-04-20 09:52:56 +0200
committerSven Eckelmann <sven@narfation.org>2011-05-01 22:49:03 +0200
commit5f657ec0d2103571a31707711926b443a27b0c66 (patch)
tree573b6740dffb1ad7891d6e04027e12c038e6bd28 /net/batman-adv/send.c
parentb5a6f69c5ca024bea43496d517c3b7ccfdb084a6 (diff)
batman-adv: Move definition of atomic_dec_not_zero() into main.h
atomic_dec_not_zero() is very useful and it is currently defined multiple times. So it is possible to move it in main.h Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/send.c')
-rw-r--r--net/batman-adv/send.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index e78670c3c4b..7650e2bf187 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -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.
*