On Saturday 21 May 2016 21:35:55 Antonio Quartulli wrote:
Some fields in the hard-interface data structure are specific to the B.A.T.M.A.N. V protocol and have to be initialized only when such protocol is compiled in. Instead of having a #ifdef block in the middle of the hard-interface.c code it is better to have an algorithm private function that hides the precompiler logic in its own header file (like other functions).
Fixes: ffd2f27908e5 ("batman-adv: Only init ELP tweaking options when BATMAN_V is enabled") Signed-off-by: Antonio Quartulli email@example.com
Reviewed-by: Sven Eckelmann firstname.lastname@example.org
Kind regards, Sven