diff mbox

[rdma-next] iw_cxgb4: fix uninitialized variable warnings

Message ID 20180514182811.9BFEB2B88F@smtp.opengridcomputing.com (mailing list archive)
State Accepted
Delegated to: Jason Gunthorpe
Headers show

Commit Message

Steve Wise May 14, 2018, 6:12 p.m. UTC
Fixes: 056f9c7f39bf ("iw_cxgb4: dump detailed driver-specific QP information")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---
 drivers/infiniband/hw/cxgb4/restrack.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Jason Gunthorpe May 15, 2018, 11:15 p.m. UTC | #1
On Mon, May 14, 2018 at 11:12:26AM -0700, Steve Wise wrote:
> Fixes: 056f9c7f39bf ("iw_cxgb4: dump detailed driver-specific QP information")
> Signed-off-by: Steve Wise <swise@opengridcomputing.com>
> ---
>  drivers/infiniband/hw/cxgb4/restrack.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

applied to for-next, thanks

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/infiniband/hw/cxgb4/restrack.c b/drivers/infiniband/hw/cxgb4/restrack.c
index a677940..8d1106b 100644
--- a/drivers/infiniband/hw/cxgb4/restrack.c
+++ b/drivers/infiniband/hw/cxgb4/restrack.c
@@ -174,10 +174,10 @@  static int fill_res_qp_entry(struct sk_buff *msg,
 	struct t4_swsqe *fsp = NULL, *lsp = NULL;
 	struct t4_swrqe *frp = NULL, *lrp = NULL;
 	struct c4iw_qp *qhp = to_c4iw_qp(ibqp);
+	u16 first_sq_idx = 0, last_sq_idx = 0;
+	u16 first_rq_idx = 0, last_rq_idx = 0;
 	struct t4_swsqe first_sqe, last_sqe;
 	struct t4_swrqe first_rqe, last_rqe;
-	u16 first_sq_idx, last_sq_idx;
-	u16 first_rq_idx, last_rq_idx;
 	struct nlattr *table_attr;
 	struct t4_wq wq;