aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/aggregation.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/aggregation.c
parentbatman-adv: orig_hash_find() manages rcu_lock/unlock internally (diff)
downloadlinux-dev-5f657ec0d2103571a31707711926b443a27b0c66.tar.xz
linux-dev-5f657ec0d2103571a31707711926b443a27b0c66.zip
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/aggregation.c')
-rw-r--r--net/batman-adv/aggregation.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/batman-adv/aggregation.c b/net/batman-adv/aggregation.c
index af45d6b2031f..c11788c4c1a1 100644
--- a/net/batman-adv/aggregation.c
+++ b/net/batman-adv/aggregation.c
@@ -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,