aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSathya Perla <[email protected]>2015-02-06 08:18:43 -0500
committerDavid S. Miller <[email protected]>2015-02-07 22:50:59 -0800
commitf986afcbe05f507e4520cf0e92bdb56637a3e6c1 (patch)
tree4e4c2b111445ebe8c9c1c0c9e455e51bd5c950a2 /lib/memory-notifier-error-inject.c
parent21252377bb2b9f038b4c9d829f69cafca4a4c1c7 (diff)
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions