]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/infiniband/core/mad_rmpp.c
IB: Remove __constant_{endian} uses
[net-next-2.6.git] / drivers / infiniband / core / mad_rmpp.c
index 3af2b84cd838445da6c55bddd670eb26c69e3143..57a3c6f947b2050ca1109a8dee4316292b55b9c8 100644 (file)
@@ -735,7 +735,7 @@ process_rmpp_data(struct ib_mad_agent_private *agent,
                goto bad;
        }
 
-       if (rmpp_hdr->seg_num == __constant_htonl(1)) {
+       if (rmpp_hdr->seg_num == cpu_to_be32(1)) {
                if (!(ib_get_rmpp_flags(rmpp_hdr) & IB_MGMT_RMPP_FLAG_FIRST)) {
                        rmpp_status = IB_MGMT_RMPP_STATUS_BAD_SEG;
                        goto bad;