From: Antonio Quartulli Date: Sun, 13 Oct 2013 00:50:18 +0000 (+0200) Subject: batman-adv: invoke dev_get_by_index() outside of is_wifi_iface() X-Git-Tag: v3.13-rc1~105^2~132^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c69aecc5b1a57d62c39cf8c552a9e823409db60;p=pandora-kernel.git batman-adv: invoke dev_get_by_index() outside of is_wifi_iface() 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 Signed-off-by: Marek Lindner --- Reading git-diff-tree failed