From: Sathya Perla Date: Fri, 6 Feb 2015 13:18:43 +0000 (-0500) Subject: be2net: avoid unncessary swapping of fields in eth_tx_wrb X-Git-Tag: fixes-v4.0-rc1~150^2~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f986afcbe05f507e4520cf0e92bdb56637a3e6c1;p=pandora-kernel.git be2net: avoid unncessary swapping of fields in eth_tx_wrb The 32-bit fields of a tx-wrb are little endian. The driver is currently using be_dws_le_to_cpu() routine to swap (cpu to le) all the fields of a tx-wrb. So, the rsvd field is also unnecessarily swapped. This patch fixes this by individually swapping the required fields. Also, the type of the fields in eth_tx_wrb{} is now changed to __le32 from u32 to avoid sparse warnings. Signed-off-by: Sathya Perla Signed-off-by: David S. Miller --- Reading git-diff-tree failed