From patchwork Tue Jul 31 15:25:25 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: 10550917 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 4BD0696FA for ; Tue, 31 Jul 2018 15:25:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C91D2B156 for ; Tue, 31 Jul 2018 15:25:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3067D2B168; Tue, 31 Jul 2018 15:25:28 +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 C1FEC2B156 for ; Tue, 31 Jul 2018 15:25:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732285AbeGaRGP (ORCPT ); Tue, 31 Jul 2018 13:06:15 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:53418 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732269AbeGaRGP (ORCPT ); Tue, 31 Jul 2018 13:06:15 -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=1533050725; x=1564586725; h=from:to:cc:subject:date:message-id; bh=XOICvj/8SHQ3yXK7l4/tm+Mb/IYfvUoVr9/xlhQOfcA=; b=qr6UoAsGY4FDIAQzPm6OtTJbEi5xPjhMzTDtayr75wLU1t5HlmiGFFrs YUflxHsQqCc02Tl0Omj0GlDd3sbhtbEa4zeB/L4HGqD55ExhFelDROb1u 2LPfXTjA//c2i0wN/h7vs1C1XBFkcYOBKg5NjMjfkWLM+q5iIHc3GJX3G ZBGmsb9JPXnRW5OGM6m9YMBLSajH+D6FGuxydM4gMEHgSbJeosHKm+BOh 9Kp17mOVnu7/mErx3KLnMw7bOICNAPzQw8aHBissVsyUVM94YdOzslARl pAd+4rfsQGVze0djOBwVhOD9POMusF17c5z4gdgzotLVlNeWYKEVJeXUa A==; X-IronPort-AV: E=Sophos;i="5.51,427,1526313600"; d="scan'208";a="86472479" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 31 Jul 2018 23:25:25 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 31 Jul 2018 08:13:52 -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:25:25 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Steve Wise , Raju Rangoju Subject: [PATCH] rdma/cxgb4: Simplify a structure initialization Date: Tue, 31 Jul 2018 08:25:25 -0700 Message-Id: <20180731152525.12470-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 Cc: Steve Wise Cc: Raju Rangoju Acked-by: Steve Wise --- 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..92fdf69d5605 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;