From patchwork Mon May 14 18:12:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Wise X-Patchwork-Id: 10399081 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2515E60216 for ; Mon, 14 May 2018 18:28:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14E2928418 for ; Mon, 14 May 2018 18:28:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0801028420; Mon, 14 May 2018 18:28:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6655228418 for ; Mon, 14 May 2018 18:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbeENS2M (ORCPT ); Mon, 14 May 2018 14:28:12 -0400 Received: from 72-48-214-68.dyn.grandenetworks.net ([72.48.214.68]:38136 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbeENS2M (ORCPT ); Mon, 14 May 2018 14:28:12 -0400 Received: by smtp.opengridcomputing.com (Postfix, from userid 503) id 9BFEB2B88F; Mon, 14 May 2018 13:28:11 -0500 (CDT) From: Steve Wise Date: Mon, 14 May 2018 11:12:26 -0700 Subject: [PATCH rdma-next] iw_cxgb4: fix uninitialized variable warnings To: jgg@mellanox.com, dledford@redhat.com Cc: linux-rdma@vger.kernel.org Message-Id: <20180514182811.9BFEB2B88F@smtp.opengridcomputing.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes: 056f9c7f39bf ("iw_cxgb4: dump detailed driver-specific QP information") Signed-off-by: Steve Wise --- drivers/infiniband/hw/cxgb4/restrack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;