batman-adv: Reduce preprocessor checks in multicast.c
authorSven Eckelmann <sven@narfation.org>
Wed, 22 Feb 2017 16:16:39 +0000 (17:16 +0100)
committerSimon Wunderlich <sw@simonwunderlich.de>
Thu, 16 Mar 2017 20:14:50 +0000 (21:14 +0100)
commitc1bacea053fdaa20cbb37287eb33198ddef255bd
tree0088ad75869ef9f2446ee3f3ef245a4abe353460
parentb96a89818805d90513ac5516e17ecd9d8c19313a
batman-adv: Reduce preprocessor checks in multicast.c

It is not necessary to disable these code sections in case other kernel
features are disabled. Instead the IS_ENABLED tests can be added directly
in the code and the compiler can remove the unnecessary code parts during
its optimization run.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/multicast.c