aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/aggregation.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-06-09 17:13:09 +0200
committerSven Eckelmann <sven@narfation.org>2011-06-09 20:40:38 +0200
commitecbd532108cb21d9d3770f73e168bad65d14d9eb (patch)
tree2755df4a468d6d146e20bed8306e8c76c74f1ce9 /net/batman-adv/aggregation.c
parentbatman-adv: Use enums for related constants (diff)
downloadlinux-dev-ecbd532108cb21d9d3770f73e168bad65d14d9eb.tar.xz
linux-dev-ecbd532108cb21d9d3770f73e168bad65d14d9eb.zip
batman-adv: use NO_FLAGS define instead of hard-coding 0
The definition NO_FLAGS was introduced to make the code more readable and shall be used to initialize flag fields. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/aggregation.c')
-rw-r--r--net/batman-adv/aggregation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/aggregation.c b/net/batman-adv/aggregation.c
index b41f25b59470..4080970ade7d 100644
--- a/net/batman-adv/aggregation.c
+++ b/net/batman-adv/aggregation.c
@@ -151,7 +151,7 @@ static void new_aggregated_packet(const unsigned char *packet_buff,
forw_packet_aggr->own = own_packet;
forw_packet_aggr->if_incoming = if_incoming;
forw_packet_aggr->num_packets = 0;
- forw_packet_aggr->direct_link_flags = 0;
+ forw_packet_aggr->direct_link_flags = NO_FLAGS;
forw_packet_aggr->send_time = send_time;
/* save packet direct link flag status */