diff options
author | Santosh Nayak <santoshprasadnayak@gmail.com> | 2012-02-24 06:56:39 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-24 17:53:03 -0500 |
commit | 21ca54e99b085b9ff4c91ca41afe42a439966109 (patch) | |
tree | 0b62c1e6c00e05258200bca0ecddca2f96e099fa /drivers/net/ethernet/cisco/enic/cq_enet_desc.h | |
parent | e807e566e99b644d8d248ba9393a0ba3f1012fdc (diff) | |
download | op-kernel-dev-21ca54e99b085b9ff4c91ca41afe42a439966109.zip op-kernel-dev-21ca54e99b085b9ff4c91ca41afe42a439966109.tar.gz |
enic: Fix endianness bug.
Sparse complaints the endian bug.
Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cisco/enic/cq_enet_desc.h')
-rw-r--r-- | drivers/net/ethernet/cisco/enic/cq_enet_desc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cisco/enic/cq_enet_desc.h b/drivers/net/ethernet/cisco/enic/cq_enet_desc.h index c2c0680..ac37cac 100644 --- a/drivers/net/ethernet/cisco/enic/cq_enet_desc.h +++ b/drivers/net/ethernet/cisco/enic/cq_enet_desc.h @@ -157,7 +157,7 @@ static inline void cq_enet_rq_desc_dec(struct cq_enet_rq_desc *desc, CQ_ENET_RQ_DESC_FCOE_FC_CRC_OK) ? 1 : 0; *fcoe_enc_error = (desc->flags & CQ_ENET_RQ_DESC_FCOE_ENC_ERROR) ? 1 : 0; - *fcoe_eof = (u8)((desc->checksum_fcoe >> + *fcoe_eof = (u8)((le16_to_cpu(desc->checksum_fcoe) >> CQ_ENET_RQ_DESC_FCOE_EOF_SHIFT) & CQ_ENET_RQ_DESC_FCOE_EOF_MASK); *checksum = 0; |