[PATCH] IB: sparse endianness cleanup
[deliverable/linux.git] / drivers / infiniband / hw / mthca / mthca_mad.c
index 3c7fae6cb12fee962bc262b0d4cd0bea3159c7b2..64fa78722cf6010b7a9ce377f2b2ce9db53567a9 100644 (file)
@@ -194,7 +194,7 @@ int mthca_process_mad(struct ib_device *ibdev,
 {
        int err;
        u8 status;
-       u16 slid = in_wc ? in_wc->slid : IB_LID_PERMISSIVE;
+       u16 slid = in_wc ? in_wc->slid : be16_to_cpu(IB_LID_PERMISSIVE);
 
        /* Forward locally generated traps to the SM */
        if (in_mad->mad_hdr.method == IB_MGMT_METHOD_TRAP &&
This page took 0.024475 seconds and 5 git commands to generate.