Commit 458e86ab authored by Jubin John's avatar Jubin John Committed by Doug Ledford

staging/rdma/hfi1: Remove blank line after an open brace

Remove blank line after an open brace to fix checkpatch check:
CHECK: Blank lines aren't necessary after an open brace '{'
Reviewed-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarJubin John <jubin.john@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent d125a6c6
...@@ -1538,7 +1538,6 @@ static u64 read_write_cpu(struct hfi1_devdata *dd, u64 *z_val, ...@@ -1538,7 +1538,6 @@ static u64 read_write_cpu(struct hfi1_devdata *dd, u64 *z_val,
u64 __percpu *cntr, u64 __percpu *cntr,
int vl, int mode, u64 data) int vl, int mode, u64 data)
{ {
u64 ret = 0; u64 ret = 0;
if (vl != CNTR_INVALID_VL) if (vl != CNTR_INVALID_VL)
...@@ -5931,7 +5930,6 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg) ...@@ -5931,7 +5930,6 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg)
u64 qsfp_int_mgmt = (u64)(QSFP_HFI0_INT_N | QSFP_HFI0_MODPRST_N); u64 qsfp_int_mgmt = (u64)(QSFP_HFI0_INT_N | QSFP_HFI0_MODPRST_N);
if (reg & QSFP_HFI0_MODPRST_N) { if (reg & QSFP_HFI0_MODPRST_N) {
dd_dev_info(dd, "%s: ModPresent triggered QSFP interrupt\n", dd_dev_info(dd, "%s: ModPresent triggered QSFP interrupt\n",
__func__); __func__);
...@@ -5995,7 +5993,6 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg) ...@@ -5995,7 +5993,6 @@ static void handle_qsfp_int(struct hfi1_devdata *dd, u32 src_ctx, u64 reg)
} }
if (reg & QSFP_HFI0_INT_N) { if (reg & QSFP_HFI0_INT_N) {
dd_dev_info(dd, "%s: IntN triggered QSFP interrupt\n", dd_dev_info(dd, "%s: IntN triggered QSFP interrupt\n",
__func__); __func__);
spin_lock_irqsave(&ppd->qsfp_info.qsfp_lock, flags); spin_lock_irqsave(&ppd->qsfp_info.qsfp_lock, flags);
...@@ -9266,7 +9263,6 @@ void qsfp_event(struct work_struct *work) ...@@ -9266,7 +9263,6 @@ void qsfp_event(struct work_struct *work)
dc_start(dd); dc_start(dd);
if (qd->cache_refresh_required) { if (qd->cache_refresh_required) {
set_qsfp_int_n(ppd, 0); set_qsfp_int_n(ppd, 0);
wait_for_qsfp_init(ppd); wait_for_qsfp_init(ppd);
...@@ -10122,7 +10118,6 @@ int set_link_state(struct hfi1_pportdata *ppd, u32 state) ...@@ -10122,7 +10118,6 @@ int set_link_state(struct hfi1_pportdata *ppd, u32 state)
"%s: logical state did not change to ACTIVE\n", "%s: logical state did not change to ACTIVE\n",
__func__); __func__);
} else { } else {
/* tell all engines to go running */ /* tell all engines to go running */
sdma_all_running(dd); sdma_all_running(dd);
......
...@@ -440,7 +440,6 @@ static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd, ...@@ -440,7 +440,6 @@ static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd,
static inline void init_packet(struct hfi1_ctxtdata *rcd, static inline void init_packet(struct hfi1_ctxtdata *rcd,
struct hfi1_packet *packet) struct hfi1_packet *packet)
{ {
packet->rsize = rcd->rcvhdrqentsize; /* words */ packet->rsize = rcd->rcvhdrqentsize; /* words */
packet->maxcnt = rcd->rcvhdrq_cnt * packet->rsize; /* words */ packet->maxcnt = rcd->rcvhdrq_cnt * packet->rsize; /* words */
packet->rcd = rcd; packet->rcd = rcd;
...@@ -755,7 +754,6 @@ static inline void process_rcv_update(int last, struct hfi1_packet *packet) ...@@ -755,7 +754,6 @@ static inline void process_rcv_update(int last, struct hfi1_packet *packet)
static inline void finish_packet(struct hfi1_packet *packet) static inline void finish_packet(struct hfi1_packet *packet)
{ {
/* /*
* Nothing we need to free for the packet. * Nothing we need to free for the packet.
* *
...@@ -769,7 +767,6 @@ static inline void finish_packet(struct hfi1_packet *packet) ...@@ -769,7 +767,6 @@ static inline void finish_packet(struct hfi1_packet *packet)
static inline void process_rcv_qp_work(struct hfi1_packet *packet) static inline void process_rcv_qp_work(struct hfi1_packet *packet)
{ {
struct hfi1_ctxtdata *rcd; struct hfi1_ctxtdata *rcd;
struct rvt_qp *qp, *nqp; struct rvt_qp *qp, *nqp;
......
...@@ -2183,7 +2183,6 @@ struct opa_port_error_info_msg { ...@@ -2183,7 +2183,6 @@ struct opa_port_error_info_msg {
__be32 error_info_select_mask; __be32 error_info_select_mask;
__be32 reserved1; __be32 reserved1;
struct _port_ei { struct _port_ei {
u8 port_number; u8 port_number;
u8 reserved2[7]; u8 reserved2[7];
...@@ -3140,7 +3139,6 @@ static int pma_set_opa_portstatus(struct opa_pma_mad *pmp, ...@@ -3140,7 +3139,6 @@ static int pma_set_opa_portstatus(struct opa_pma_mad *pmp,
for_each_set_bit(vl, (unsigned long *)&(vl_select_mask), for_each_set_bit(vl, (unsigned long *)&(vl_select_mask),
8 * sizeof(vl_select_mask)) { 8 * sizeof(vl_select_mask)) {
if (counter_select & CS_PORT_XMIT_DATA) if (counter_select & CS_PORT_XMIT_DATA)
write_port_cntr(ppd, C_TX_FLIT_VL, idx_from_vl(vl), 0); write_port_cntr(ppd, C_TX_FLIT_VL, idx_from_vl(vl), 0);
......
...@@ -464,7 +464,6 @@ static int iowait_sleep( ...@@ -464,7 +464,6 @@ static int iowait_sleep(
spin_lock_irqsave(&qp->s_lock, flags); spin_lock_irqsave(&qp->s_lock, flags);
if (ib_rvt_state_ops[qp->state] & RVT_PROCESS_RECV_OK) { if (ib_rvt_state_ops[qp->state] & RVT_PROCESS_RECV_OK) {
/* /*
* If we couldn't queue the DMA request, save the info * If we couldn't queue the DMA request, save the info
* and try again later rather than destroying the * and try again later rather than destroying the
......
...@@ -359,7 +359,6 @@ int refresh_qsfp_cache(struct hfi1_pportdata *ppd, struct qsfp_data *cp) ...@@ -359,7 +359,6 @@ int refresh_qsfp_cache(struct hfi1_pportdata *ppd, struct qsfp_data *cp)
/* Is paging enabled? */ /* Is paging enabled? */
if (!(cache[2] & 4)) { if (!(cache[2] & 4)) {
/* Paging enabled, page 03 required */ /* Paging enabled, page 03 required */
if ((cache[195] & 0xC0) == 0xC0) { if ((cache[195] & 0xC0) == 0xC0) {
/* all */ /* all */
...@@ -520,7 +519,6 @@ int qsfp_dump(struct hfi1_pportdata *ppd, char *buf, int len) ...@@ -520,7 +519,6 @@ int qsfp_dump(struct hfi1_pportdata *ppd, char *buf, int len)
lenstr[1] = '\0'; lenstr[1] = '\0';
if (ppd->qsfp_info.cache_valid) { if (ppd->qsfp_info.cache_valid) {
if (QSFP_IS_CU(cache[QSFP_MOD_TECH_OFFS])) if (QSFP_IS_CU(cache[QSFP_MOD_TECH_OFFS]))
sprintf(lenstr, "%dM ", cache[QSFP_MOD_LEN_OFFS]); sprintf(lenstr, "%dM ", cache[QSFP_MOD_LEN_OFFS]);
......
...@@ -475,7 +475,6 @@ static void sdma_err_halt_wait(struct work_struct *work) ...@@ -475,7 +475,6 @@ static void sdma_err_halt_wait(struct work_struct *work)
static void sdma_err_progress_check_schedule(struct sdma_engine *sde) static void sdma_err_progress_check_schedule(struct sdma_engine *sde)
{ {
if (!is_bx(sde->dd) && HFI1_CAP_IS_KSET(SDMA_AHG)) { if (!is_bx(sde->dd) && HFI1_CAP_IS_KSET(SDMA_AHG)) {
unsigned index; unsigned index;
struct hfi1_devdata *dd = sde->dd; struct hfi1_devdata *dd = sde->dd;
...@@ -1238,7 +1237,6 @@ void sdma_exit(struct hfi1_devdata *dd) ...@@ -1238,7 +1237,6 @@ void sdma_exit(struct hfi1_devdata *dd)
for (this_idx = 0; dd->per_sdma && this_idx < dd->num_sdma; for (this_idx = 0; dd->per_sdma && this_idx < dd->num_sdma;
++this_idx) { ++this_idx) {
sde = &dd->per_sdma[this_idx]; sde = &dd->per_sdma[this_idx];
if (!list_empty(&sde->dmawait)) if (!list_empty(&sde->dmawait))
dd_dev_err(dd, "sde %u: dmawait list not empty!\n", dd_dev_err(dd, "sde %u: dmawait list not empty!\n",
......
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