From patchwork Tue Jul 31 15:51:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10550959 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-2.web.codeaurora.org (Postfix) with ESMTP id C305B13BB for ; Tue, 31 Jul 2018 15:51:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B43B22B2DD for ; Tue, 31 Jul 2018 15:51:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A90F62B2DB; Tue, 31 Jul 2018 15:51:33 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 2EFD42B2C8 for ; Tue, 31 Jul 2018 15:51:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732376AbeGaRc1 (ORCPT ); Tue, 31 Jul 2018 13:32:27 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:49739 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732364AbeGaRc1 (ORCPT ); Tue, 31 Jul 2018 13:32:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1533052291; x=1564588291; h=from:to:cc:subject:date:message-id; bh=NmjGnEcZR2bloWTPAZkagxlp6BWakO9lrDjyzOA4r2k=; b=NNCGY0L+PgHo2R+a0qh1holJ5fQbimLT85EB38Cq9+5vpjDncIr7x3HS pci+eKgcTgUxaXzPYTip3hGTFX6QBEyQIhePBvC8KE3KB1Sq5s7AQfhZ3 QjXQ3lNa34BMzhKQHUaFhVO1+MV4T6u0Xvt9LO+7ZU5pxpt1+IdmsdXiD opm6nRT1W7GLqj38DAakJhVjMiGxHvzT/X70gP1lOhWk3RGumjdLHa/fT LvkOfkcxD9sag+2dJNrrkzGevkknAJvEcb8JQfqZ6TTwkUI4XJMBWB8ag vZAdgCjC1wBGtRC2HJRbkOhluzSNadgfSwI5HRumkMskI9k9bkn1gvwp3 A==; X-IronPort-AV: E=Sophos;i="5.51,427,1526313600"; d="scan'208";a="87090554" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 31 Jul 2018 23:51:30 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 31 Jul 2018 08:39:21 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 31 Jul 2018 08:51:31 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Raju Rangoju Subject: [PATCH v2] rdma/cxgb4: Simplify a structure initialization Date: Tue, 31 Jul 2018 08:51:30 -0700 Message-Id: <20180731155130.29810-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 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 This patch avoids that sparse reports the following warning: drivers/infiniband/hw/cxgb4/qp.c:2269:34: warning: Using plain integer as NULL pointer Signed-off-by: Bart Van Assche Acked-by: Steve Wise Cc: Raju Rangoju Acked-by: Raju Rangoju --- drivers/infiniband/hw/cxgb4/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 62e2c0d899f5..c26086c76f0b 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -2266,7 +2266,7 @@ struct ib_qp *c4iw_get_qp(struct ib_device *dev, int qpn) void c4iw_dispatch_srq_limit_reached_event(struct c4iw_srq *srq) { - struct ib_event event = {0}; + struct ib_event event = {}; event.device = &srq->rhp->ibdev; event.element.srq = &srq->ibsrq;