aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qla3xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rw-r--r--drivers/net/qla3xxx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index a6aeb9d60443..b7f7b2227d56 100644
--- a/drivers/net/qla3xxx.c
+++ b/drivers/net/qla3xxx.c
@@ -2472,8 +2472,7 @@ static int ql_send_map(struct ql3_adapter *qdev,
2472 2472
2473 if (seg_cnt == 1) { 2473 if (seg_cnt == 1) {
2474 /* Terminate the last segment. */ 2474 /* Terminate the last segment. */
2475 oal_entry->len = 2475 oal_entry->len |= cpu_to_le32(OAL_LAST_ENTRY);
2476 cpu_to_le32(le32_to_cpu(oal_entry->len) | OAL_LAST_ENTRY);
2477 } else { 2476 } else {
2478 oal = tx_cb->oal; 2477 oal = tx_cb->oal;
2479 for (completed_segs=0; completed_segs<frag_cnt; completed_segs++,seg++) { 2478 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 frag->size); 2529 frag->size);
2531 } 2530 }
2532 /* Terminate the last segment. */ 2531 /* Terminate the last segment. */
2533 oal_entry->len = 2532 oal_entry->len |= cpu_to_le32(OAL_LAST_ENTRY);
2534 cpu_to_le32(le32_to_cpu(oal_entry->len) | OAL_LAST_ENTRY);
2535 } 2533 }
2536 2534
2537 return NETDEV_TX_OK; 2535 return NETDEV_TX_OK;