diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2011-06-09 11:13:09 -0400 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-06-09 14:40:38 -0400 |
commit | ecbd532108cb21d9d3770f73e168bad65d14d9eb (patch) | |
tree | 2755df4a468d6d146e20bed8306e8c76c74f1ce9 /net/batman-adv/send.c | |
parent | e8958dbf0da377e11f385a9888da3f72e827ab26 (diff) |
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/send.c')
-rw-r--r-- | net/batman-adv/send.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index d0cfa95e3037..a1b8c3173a3f 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c | |||
@@ -289,7 +289,7 @@ void schedule_own_packet(struct hard_iface *hard_iface) | |||
289 | batman_packet->gw_flags = | 289 | batman_packet->gw_flags = |
290 | (uint8_t)atomic_read(&bat_priv->gw_bandwidth); | 290 | (uint8_t)atomic_read(&bat_priv->gw_bandwidth); |
291 | else | 291 | else |
292 | batman_packet->gw_flags = 0; | 292 | batman_packet->gw_flags = NO_FLAGS; |
293 | 293 | ||
294 | atomic_inc(&hard_iface->seqno); | 294 | atomic_inc(&hard_iface->seqno); |
295 | 295 | ||