Commit b3999393 authored by Roland Dreier's avatar Roland Dreier

IB/mthca: Formatting cleanups

Fix a few whitespace and other coding style problems.
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 4b119e21
...@@ -232,9 +232,9 @@ static inline struct mthca_eqe *get_eqe(struct mthca_eq *eq, u32 entry) ...@@ -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; return eq->page_list[off / PAGE_SIZE].buf + off % PAGE_SIZE;
} }
static inline struct mthca_eqe* next_eqe_sw(struct mthca_eq *eq) static inline struct mthca_eqe *next_eqe_sw(struct mthca_eq *eq)
{ {
struct mthca_eqe* eqe; struct mthca_eqe *eqe;
eqe = get_eqe(eq, eq->cons_index); eqe = get_eqe(eq, eq->cons_index);
return (MTHCA_EQ_ENTRY_OWNER_HW & eqe->owner) ? NULL : eqe; return (MTHCA_EQ_ENTRY_OWNER_HW & eqe->owner) ? NULL : eqe;
} }
......
...@@ -125,7 +125,7 @@ static void smp_snoop(struct ib_device *ibdev, ...@@ -125,7 +125,7 @@ static void smp_snoop(struct ib_device *ibdev,
event.device = ibdev; event.device = ibdev;
event.element.port_num = port_num; event.element.port_num = port_num;
if(pinfo->clientrereg_resv_subnetto & 0x80) if (pinfo->clientrereg_resv_subnetto & 0x80)
event.event = IB_EVENT_CLIENT_REREGISTER; event.event = IB_EVENT_CLIENT_REREGISTER;
else else
event.event = IB_EVENT_LID_CHANGE; event.event = IB_EVENT_LID_CHANGE;
......
...@@ -60,7 +60,7 @@ static int mthca_query_device(struct ib_device *ibdev, ...@@ -60,7 +60,7 @@ static int mthca_query_device(struct ib_device *ibdev,
struct ib_smp *in_mad = NULL; struct ib_smp *in_mad = NULL;
struct ib_smp *out_mad = NULL; struct ib_smp *out_mad = NULL;
int err = -ENOMEM; int err = -ENOMEM;
struct mthca_dev* mdev = to_mdev(ibdev); struct mthca_dev *mdev = to_mdev(ibdev);
u8 status; u8 status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment