Commit b39b5a2b authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Jeff Garzik

qla3xxx: convert byte order of constant instead of variable

Convert byte order of constant instead of variable which can be done at
compile time (vs run time)
Signed-off-by: default avatarMarcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: default avatarRon Mercer <ron.mercer@qlogic.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 7a6d84c1
...@@ -2472,8 +2472,7 @@ static int ql_send_map(struct ql3_adapter *qdev, ...@@ -2472,8 +2472,7 @@ static int ql_send_map(struct ql3_adapter *qdev,
if (seg_cnt == 1) { if (seg_cnt == 1) {
/* Terminate the last segment. */ /* Terminate the last segment. */
oal_entry->len = oal_entry->len |= cpu_to_le32(OAL_LAST_ENTRY);
cpu_to_le32(le32_to_cpu(oal_entry->len) | OAL_LAST_ENTRY);
} else { } else {
oal = tx_cb->oal; oal = tx_cb->oal;
for (completed_segs=0; completed_segs<frag_cnt; completed_segs++,seg++) { for (completed_segs=0; completed_segs<frag_cnt; completed_segs++,seg++) {
...@@ -2530,8 +2529,7 @@ static int ql_send_map(struct ql3_adapter *qdev, ...@@ -2530,8 +2529,7 @@ static int ql_send_map(struct ql3_adapter *qdev,
frag->size); frag->size);
} }
/* Terminate the last segment. */ /* Terminate the last segment. */
oal_entry->len = oal_entry->len |= cpu_to_le32(OAL_LAST_ENTRY);
cpu_to_le32(le32_to_cpu(oal_entry->len) | OAL_LAST_ENTRY);
} }
return NETDEV_TX_OK; return NETDEV_TX_OK;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment