From: Alexander Duyck Date: Thu, 7 Feb 2013 08:55:46 +0000 (+0000) Subject: igb: Pull adapter out of main path in igb_xmit_frame_ring X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~90^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b646c22edef1c350d26237a6f60d3a890ceedf6e;p=pandora-kernel.git igb: Pull adapter out of main path in igb_xmit_frame_ring We only need the adapter pointer in the case of ptp. As such we can pull the adapter out of the main path and place it inside the if statement to avoid the temptation of accessing the adapter pointer in the fast path. Signed-off-by: Alexander Duyck Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed