IB/mthca: Formatting cleanups
authorRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:03 +0000 (21:01 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:03 +0000 (21:01 -0700)
Fix a few whitespace and other coding style problems.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/mthca/mthca_dev.h
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_mad.c
drivers/infiniband/hw/mthca/mthca_memfree.c
drivers/infiniband/hw/mthca/mthca_provider.c

index 09a30dd12b147433020a796ef94b21cd33725bf3..667c35ddb7ceab7dbea9a66562f837143ff5dcfc 100644 (file)
@@ -219,7 +219,7 @@ static void mthca_cmd_post_dbell(struct mthca_dev *dev,
        __raw_writel((__force u32) cpu_to_be32((1 << HCR_GO_BIT)                |
                                               (1 << HCA_E_BIT)                 |
                                               (op_modifier << HCR_OPMOD_SHIFT) |
-                                               op),                      ptr + offs[6]);
+                                               op),                      ptr + offs[6]);
        wmb();
        __raw_writel((__force u32) 0,                                     ptr + offs[7]);
        wmb();
index 7bbdd1f4e6c708c14ee3dc0ab031c64b24140779..f82ed832ad97c379ecd3d7536c6952824d694cb1 100644 (file)
@@ -390,11 +390,11 @@ extern void __buggy_use_of_MTHCA_PUT(void);
        do {                                                          \
                void *__p = (char *) (source) + (offset);             \
                switch (sizeof (dest)) {                              \
-                       case 1: (dest) = *(u8 *) __p;       break;    \
-                       case 2: (dest) = be16_to_cpup(__p); break;    \
-                       case 4: (dest) = be32_to_cpup(__p); break;    \
-                       case 8: (dest) = be64_to_cpup(__p); break;    \
-                       default: __buggy_use_of_MTHCA_GET();          \
+               case 1: (dest) = *(u8 *) __p;       break;            \
+               case 2: (dest) = be16_to_cpup(__p); break;            \
+               case 4: (dest) = be32_to_cpup(__p); break;            \
+               case 8: (dest) = be64_to_cpup(__p); break;            \
+               default: __buggy_use_of_MTHCA_GET();                  \
                }                                                     \
        } while (0)
 
index b60eb5df96e8bc2d521f19253203a46098b50c28..8bde7f98e58a2bfc81a178d6321ecc1b506298ca 100644 (file)
@@ -232,9 +232,9 @@ static inline struct mthca_eqe *get_eqe(struct mthca_eq *eq, u32 entry)
        return eq->page_list[off / PAGE_SIZE].buf + off % PAGE_SIZE;
 }
 
-static inline struct mthca_eqenext_eqe_sw(struct mthca_eq *eq)
+static inline struct mthca_eqe *next_eqe_sw(struct mthca_eq *eq)
 {
-       struct mthca_eqeeqe;
+       struct mthca_eqe *eqe;
        eqe = get_eqe(eq, eq->cons_index);
        return (MTHCA_EQ_ENTRY_OWNER_HW & eqe->owner) ? NULL : eqe;
 }
index acfa41d968eef816e48e78313c510cbb3d46c1a9..8b7e83e6e88fecd0176725072b349f69ee2a0e9e 100644 (file)
@@ -125,7 +125,7 @@ static void smp_snoop(struct ib_device *ibdev,
                        event.device           = ibdev;
                        event.element.port_num = port_num;
 
-                       if(pinfo->clientrereg_resv_subnetto & 0x80)
+                       if (pinfo->clientrereg_resv_subnetto & 0x80)
                                event.event    = IB_EVENT_CLIENT_REREGISTER;
                        else
                                event.event    = IB_EVENT_LID_CHANGE;
index 252db0822f6cbc2e8d1f092b6c9965aa102142ef..d7d502dd741e26d481adb8cc17b2734e96a7b90e 100644 (file)
@@ -412,7 +412,7 @@ err:
                if (table->icm[i]) {
                        mthca_UNMAP_ICM(dev, virt + i * MTHCA_TABLE_CHUNK_SIZE,
                                        MTHCA_TABLE_CHUNK_SIZE / MTHCA_ICM_PAGE_SIZE,
-                                       &status);
+                                       &status);
                        mthca_free_icm(dev, table->icm[i], table->coherent);
                }
 
index 9e491df6419cd12b2266fb2846f381479d6e07b4..ee9bc14562265a597660860e642faedc71d14011 100644 (file)
@@ -60,7 +60,7 @@ static int mthca_query_device(struct ib_device *ibdev,
        struct ib_smp *in_mad  = NULL;
        struct ib_smp *out_mad = NULL;
        int err = -ENOMEM;
-       struct mthca_devmdev = to_mdev(ibdev);
+       struct mthca_dev *mdev = to_mdev(ibdev);
 
        u8 status;