On Sunday 13 October 2013 02:50:18 Antonio Quartulli wrote:
From: Antonio Quartulli antonio@open-mesh.com
Upcoming changes need to perform other checks on the incoming net_device struct.
To avoid performing dev_get_by_index() for each and every check, it is better to move it outside of is_wifi_iface() and search the netdev object once only.
Signed-off-by: Antonio Quartulli antonio@open-mesh.com
hard-interface.c | 31 +++---------------------------- hard-interface.h | 1 - translation-table.c | 8 +++++++- 3 files changed, 10 insertions(+), 30 deletions(-)
Applied in revision f7391e9.
Thanks, Marek