Skip to content

Commit

Permalink
IB/hfi1: Remove extra brackets from an if
Browse files Browse the repository at this point in the history
A recent patch to hfi1 left behind a checkpatch error.

Fixes: fb24ea5 ("drivers: Remove explicit invocations of mmiowb()")
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
  • Loading branch information
Dennis Dalessandro authored and Jason Gunthorpe committed May 29, 2019
1 parent ea99697 commit 5f5e4eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/infiniband/hw/hfi1/pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1577,9 +1577,8 @@ void hfi1_sc_wantpiobuf_intr(struct send_context *sc, u32 needint)
else
sc_del_credit_return_intr(sc);
trace_hfi1_wantpiointr(sc, needint, sc->credit_ctrl);
if (needint) {
if (needint)
sc_return_credits(sc);
}
}

/**
Expand Down

0 comments on commit 5f5e4eb

Please sign in to comment.