From: Antonio Quartulli Date: Sun, 30 Oct 2011 11:17:33 +0000 (+0100) Subject: batman-adv: create a common substructure for tt_global/local_entry X-Git-Tag: v3.3-rc1~182^2~250^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48100bac89a6161ca53dd65697fe635f77986686;p=pandora-kernel.git batman-adv: create a common substructure for tt_global/local_entry Several functions in the translation table management code assume that the tt_global_entry and tt_local_entry structures have the same initial fields such as 'addr' and 'hash_entry'. To improve the code readability and to avoid mistakes in later changes, a common substructure that substitute the shared fields has been introduced (struct tt_common_entry). Thanks to this modification, it has also been possible to slightly reduce the code length by merging some functions like compare_ltt/gtt() and tt_local/global_hash_find() Signed-off-by: Antonio Quartulli Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed