batman-adv: Use chain pointer when purging fragments
authorSven Eckelmann <sven@narfation.org>
Wed, 26 Aug 2015 08:31:50 +0000 (10:31 +0200)
committerAntonio Quartulli <a@unstable.cc>
Wed, 16 Dec 2015 07:17:09 +0000 (15:17 +0800)
commit01f6b5c76a68e294e90a040c651adb90126e802d
tree72666b048b4787053ca616c8dcc69b5e9df9c4d9
parentad7e2c466d8b0a7056cd248e1df6bb7296e014f7
batman-adv: Use chain pointer when purging fragments

The chain pointer was already created in batadv_frag_purge_orig to make the
checks more readable. Just use the chain pointer everywhere instead of
having the same dereference + array access in the most lines of this
function.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/fragmentation.c