From: Bruce Allan Date: Thu, 5 Jan 2012 00:34:05 +0000 (+0000) Subject: e1000e: cleanup Rx checksum offload code X-Git-Tag: v3.4-rc1~177^2~496 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afd12939a09ca8f96cf8349c913dc143471c9b3c;p=pandora-kernel.git e1000e: cleanup Rx checksum offload code 1) cleanup whitespace in e1000_rx_checksum() function header comment 2) do not check hardware checksum when Rx checksum is disabled 3) reduce duplicated calls to le16_to_cpu() by just using it within e1000_rx_checksum() instead of in each call to the function v2: use swab16 instead of le16_to_cpu & htons and corrected type for the passed-in csum Signed-off-by: Bruce Allan Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed