Skip to content

Commit

Permalink
qla3xxx: convert byte order of constant instead of variable
Browse files Browse the repository at this point in the history
Convert byte order of constant instead of variable which can be done at
compile time (vs run time)

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Marcin Slusarz authored and Jeff Garzik committed Mar 26, 2008
1 parent 7a6d84c commit b39b5a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/net/qla3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2472,8 +2472,7 @@ static int ql_send_map(struct ql3_adapter *qdev,

if (seg_cnt == 1) {
/* Terminate the last segment. */
oal_entry->len =
cpu_to_le32(le32_to_cpu(oal_entry->len) | OAL_LAST_ENTRY);
oal_entry->len |= cpu_to_le32(OAL_LAST_ENTRY);
} else {
oal = tx_cb->oal;
for (completed_segs=0; completed_segs<frag_cnt; completed_segs++,seg++) {
Expand Down Expand Up @@ -2530,8 +2529,7 @@ static int ql_send_map(struct ql3_adapter *qdev,
frag->size);
}
/* Terminate the last segment. */
oal_entry->len =
cpu_to_le32(le32_to_cpu(oal_entry->len) | OAL_LAST_ENTRY);
oal_entry->len |= cpu_to_le32(OAL_LAST_ENTRY);
}

return NETDEV_TX_OK;
Expand Down

0 comments on commit b39b5a2

Please sign in to comment.