From: David S. Miller Date: Tue, 9 Jun 2009 08:01:31 +0000 (-0700) Subject: be2net: Remove unnecessary frag list traversing. X-Git-Tag: v2.6.31-rc1~330^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebc8d2ab61dde6cf775ae7bb1ed9e38dfe12ca65;p=pandora-kernel.git be2net: Remove unnecessary frag list traversing. This driver does not indicate support for frag lists. Furthermore, even if it did, the code is walking the frag lists incorrectly. The idiom is: for (iter = skb_shinfo(skb)->frag_list; iter; iter = iter->next) but it's doing: for (iter = skb_shinfo(skb)->frag_list; iter; iter = skb_shinfo(iter)->frag_list) which would never work. And this proves that this driver never saw an SKB with active frag lists. So just remove the code altogether and the driver TX path becomes much simpler. Signed-off-by: David S. Miller --- Reading git-diff-tree failed