From: Sriharsha Basavapatna Date: Mon, 16 Feb 2015 02:33:46 +0000 (+0530) Subject: be2net: Refactor be_xmit_enqueue() routine X-Git-Tag: omap-for-v4.1/fixes-rc1~141^2~422^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79a0d7d8e0b2981dabc241cbeec6b99620dd7c5b;p=pandora-kernel.git be2net: Refactor be_xmit_enqueue() routine - Reduce code duplication by moving WRB-frags setup into a function. - Do not setup WRB-header before frags are setup, which is unncessary if there's errors while setting up frags. We should only grab an entry for the header, setup the frags and if everything is fine setup the header. - The error cleanup can be moved into a small function. Signed-off-by: Sriharsha Basavapatna Signed-off-by: David S. Miller --- Reading git-diff-tree failed